Skip to content

Commit ff6ea3e

Browse files
theoephraimclaude
andcommitted
Add cli.js bin wrapper, move index.ts to src/, add scoped bin alias
- Add cli.js placeholder that loads dist/cli.mjs (works before build) - Move index.ts into src/ for cleaner package root - Add @varlock/bumpy bin alias so bunx @varlock/bumpy resolves correctly Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5d83e79 commit ff6ea3e

7 files changed

Lines changed: 19 additions & 15 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- run: bun install
2222
# Build first since we use the local workspace package instead of the published one
2323
- run: bun run --filter @varlock/bumpy build
24+
- run: bun install
2425
- run: bunx @varlock/bumpy ci check
2526
env:
2627
GH_TOKEN: ${{ github.token }}

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- run: bun install
1919
# Build first since we use the local workspace package instead of the published one
2020
- run: bun run --filter @varlock/bumpy build
21+
- run: bun install
2122
- run: bunx @varlock/bumpy ci release
2223
env:
2324
GH_TOKEN: ${{ github.token }}

packages/bumpy/cli.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node
2+
import('./dist/cli.mjs');

packages/bumpy/index.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/bumpy/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"version": "0.0.0",
44
"description": "Modern monorepo versioning and changelog tool",
55
"bin": {
6-
"@varlock/bumpy": "./dist/cli.mjs",
7-
"bumpy": "./dist/cli.mjs"
6+
"bumpy": "./cli.js"
87
},
98
"files": [
9+
"cli.js",
1010
"dist",
1111
".claude-plugin",
1212
"skills"

packages/bumpy/src/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Re-export core modules for programmatic usage
2+
export { loadConfig, findRoot, getBumpyDir, matchGlob } from './core/config.ts';
3+
export { discoverPackages } from './core/workspace.ts';
4+
export { DependencyGraph } from './core/dep-graph.ts';
5+
export { readChangesets, parseChangeset, writeChangeset } from './core/changeset.ts';
6+
export { assembleReleasePlan } from './core/release-plan.ts';
7+
export { applyReleasePlan } from './core/apply-release-plan.ts';
8+
export { generateChangelogEntry, loadFormatter, defaultFormatter, prependToChangelog } from './core/changelog.ts';
9+
export type { ChangelogFormatter, ChangelogContext } from './core/changelog.ts';
10+
export { bumpVersion, satisfies, stripProtocol } from './core/semver.ts';
11+
export { publishPackages } from './core/publish-pipeline.ts';
12+
export * from './types.ts';

packages/bumpy/tsdown.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const pkg = JSON.parse(readFileSync('./package.json', 'utf-8'));
55

66
export default defineConfig({
77
entry: {
8-
index: './index.ts',
8+
index: './src/index.ts',
99
cli: './src/cli.ts',
1010
},
1111
format: 'esm',

0 commit comments

Comments
 (0)