From a3906d946b11222af363746c3229f7f272972490 Mon Sep 17 00:00:00 2001 From: Arun Kumar Thiagarajan Date: Fri, 27 Mar 2026 10:42:29 +0530 Subject: [PATCH] fix(build): decouple doc generation from binary compilation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The build script chained gen:skill-docs && bun build --compile with &&, so a template error in gen:skill-docs would prevent browse binaries from being compiled. ./setup would report success but leave browse/dist/browse missing — every browse command fails with ENOENT. Split into build:docs and build:binaries. Use ; (not &&) in the top- level build command so binary compilation runs even if doc generation fails. Doc errors are still visible in output but no longer block the browse binary that users need. Fixes #482. Co-Authored-By: Claude Opus 4.6 (1M context) --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index de2b664f7..ed9f4f0e9 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ "browse": "./browse/dist/browse" }, "scripts": { - "build": "bun run gen:skill-docs && bun run gen:skill-docs --host codex && bun build --compile browse/src/cli.ts --outfile browse/dist/browse && bun build --compile browse/src/find-browse.ts --outfile browse/dist/find-browse && bun build --compile bin/gstack-global-discover.ts --outfile bin/gstack-global-discover && bash browse/scripts/build-node-server.sh && git rev-parse HEAD > browse/dist/.version && rm -f .*.bun-build || true", + "build": "bun run build:docs; bun run build:binaries", + "build:docs": "bun run gen:skill-docs && bun run gen:skill-docs --host codex", + "build:binaries": "bun build --compile browse/src/cli.ts --outfile browse/dist/browse && bun build --compile browse/src/find-browse.ts --outfile browse/dist/find-browse && bun build --compile bin/gstack-global-discover.ts --outfile bin/gstack-global-discover && bash browse/scripts/build-node-server.sh && 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",