Skip to content

Commit 8dd2904

Browse files
committed
build(bin): embed sourcemaps in the compiled binary
Crash stacks from the standalone binary pointed at minified frames with no source mapping, leaving production failures unactionable. An embedded sourcemap restores file-and-line stacks at a small size cost.
1 parent 4a03fb5 commit 8dd2904

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"scripts": {
3232
"build": "bun build ./src/index.ts --outdir ./dist --target bun --external '@opentui/core-*' && bun scripts/copy-repo-plugins.ts",
33-
"build:bin": "bun build ./src/index.ts --compile --minify --define process.env.NODE_ENV='\"production\"' --outfile ./dist/corbits && ([ \"$(uname -s)\" != Darwin ] || codesign -s - --force ./dist/corbits) && bun scripts/copy-repo-plugins.ts",
33+
"build:bin": "bun build ./src/index.ts --compile --minify --sourcemap --define process.env.NODE_ENV='\"production\"' --outfile ./dist/corbits && ([ \"$(uname -s)\" != Darwin ] || codesign -s - --force ./dist/corbits) && bun scripts/copy-repo-plugins.ts",
3434
"typecheck": "tsc --noEmit",
3535
"test": "bun test ./src ./tests ./evals ./scripts --randomize --seed 424242",
3636
"test:paths": "bun scripts/test-paths.ts",

0 commit comments

Comments
 (0)