Fix build script failure on Windows

The `rm -f .*.bun-build` glob cleanup step fails on Windows/Git Bash
when no files match the pattern, causing `bun run build` to exit with
code 1. Since the setup script uses `set -e`, this aborts the entire
setup before skill symlinks are created.

Adding `|| true` makes the cleanup step non-fatal, which matches the
intent — it's just removing stale build artifacts if they exist.
This commit is contained in:
Lucas Braud
2026-03-16 09:54:24 +01:00
parent 3e3843c4a9
commit 54677117cc
+1 -1
View File
@@ -8,7 +8,7 @@
"browse": "./browse/dist/browse"
},
"scripts": {
"build": "bun run gen:skill-docs && bun build --compile browse/src/cli.ts --outfile browse/dist/browse && bun build --compile browse/src/find-browse.ts --outfile browse/dist/find-browse && git rev-parse HEAD > browse/dist/.version && rm -f .*.bun-build",
"build": "bun run gen:skill-docs && bun build --compile browse/src/cli.ts --outfile browse/dist/browse && bun build --compile browse/src/find-browse.ts --outfile browse/dist/find-browse && git rev-parse HEAD > browse/dist/.version && rm -f .*.bun-build || true",
"gen:skill-docs": "bun run scripts/gen-skill-docs.ts",
"dev": "bun run browse/src/cli.ts",
"server": "bun run browse/src/server.ts",