Skip to content

Commit dfe1723

Browse files
committed
[npm-app] fix bun run build
I was getting this error when running bun run build in /npm-app: ⎿ Error: $ bun run scripts/build-binary.js codebuff $(node -p "require('./release/package.json').version") error: Script not found "scripts/build-binary.js" error: script "build" exited with code 1 This was caused by calling `bun run scripts/build-binary.js`. When you pass a javascript file directly to bun, you don't need the `run` keyword.
1 parent b684f17 commit dfe1723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

npm-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"scripts": {
2222
"typecheck": "tsc --noEmit -p .",
23-
"build": "bun run scripts/build-binary.js codebuff $(node -p \"require('./release/package.json').version\")",
23+
"build": "bun scripts/build-binary.js codebuff $(node -p \"require('./release/package.json').version\")",
2424
"release": "bun run scripts/release.js",
2525
"start-bin": "bun run build && ./bin/codebuff",
2626
"start": "bun run src/index.ts --cwd ..",

0 commit comments

Comments
 (0)