Skip to content

Commit 9c48840

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 9c48840

5 files changed

Lines changed: 18 additions & 15 deletions

File tree

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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
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+
"@varlock/bumpy": "./cli.js",
7+
"bumpy": "./cli.js"
88
},
99
"files": [
10+
"cli.js",
1011
"dist",
1112
".claude-plugin",
1213
"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)