fix(vscode): force CLI backend rebuild on F5 compile

The compile script (triggered by F5 preLaunchTask) was reusing a cached
CLI binary when the source appeared unchanged. This could miss changes in
dependency packages outside packages/opencode/. Pass --force to
local-bin.ts so the backend is always rebuilt during a full compile.
This commit is contained in:
Mark IJbema
2026-03-26 11:09:31 +01:00
parent 18c5fc3f22
commit eaf0fe0e32
+1 -1
View File
@@ -743,7 +743,7 @@
},
"scripts": {
"prepare:cli-binary": "bun script/local-bin.ts",
"compile": "bun run prepare:cli-binary && bun run rebuild-sdk && bun run typecheck && bun run lint && node esbuild.js",
"compile": "bun run prepare:cli-binary -- --force && bun run rebuild-sdk && bun run typecheck && bun run lint && node esbuild.js",
"watch": "bun run rebuild-sdk && bun run --parallel watch:esbuild watch:tsc",
"watch:esbuild": "bun run prepare:cli-binary && node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",