From 39cc8002ab62a026e1e15d7c1704da8ffd932acf Mon Sep 17 00:00:00 2001 From: Greg Jackson Date: Thu, 26 Mar 2026 19:49:33 +0000 Subject: [PATCH] fix: decouple doc generation from binary compilation in build script The build script chains gen:skill-docs and bun build --compile with &&, so a doc generation failure (e.g. missing Codex host config, template error) prevents the browse binary from being compiled. Users end up with a broken install where setup reports the binary is missing. Replace && with ; for the two gen:skill-docs steps so they run independently of the compilation chain. Doc generation errors are still visible in stderr, but no longer block binary compilation. Fixes #482 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index de2b664f..07dc30ba 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "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 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", "gen:skill-docs": "bun run scripts/gen-skill-docs.ts", "dev": "bun run browse/src/cli.ts", "server": "bun run browse/src/server.ts",