Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"build:vite": "vite build && bun run scripts/post-build.ts",
"build:vite:only": "vite build",
"build:bun": "bun run build.ts",
"compile": "bun run build.ts; bun build --compile ./dist/cli.js",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Specify --outfile for the compiled binary.

The bun build --compile command should include an --outfile parameter to explicitly control where the compiled binary is written. Without it, the output location is ambiguous and may vary across Bun versions.

🔧 Proposed fix to add --outfile
-    "compile": "bun run build.ts; bun build --compile ./dist/cli.js",
+    "compile": "bun run build.ts; bun build --compile ./dist/cli.js --outfile=ccb",

This will generate a standalone executable named ccb that matches the primary bin entry. Adjust the name as needed (e.g., ccb-compiled or claude-code-best).

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"compile": "bun run build.ts; bun build --compile ./dist/cli.js",
"compile": "bun run build.ts; bun build --compile ./dist/cli.js --outfile=ccb",
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` at line 48, The "compile" npm script in package.json currently
runs "bun build --compile ./dist/cli.js" without specifying an output file;
update the "compile" script to add a --outfile argument so the compiled binary
path is explicit (e.g., --outfile ./dist/ccb or match the package "bin" name
"ccb"); edit the "compile" script entry to include --outfile with the desired
executable name to ensure the built binary is placed predictably.

"dev": "bun run scripts/dev.ts",
"dev:inspect": "bun run scripts/dev-debug.ts",
"prepublishOnly": "bun run build:vite",
Expand Down