fix: run bun install before building CLI binary in prepare-cli-binary

The prepare-cli-binary script would fail when opencode dependencies
weren't installed, because bunfig.toml requires @opentui/solid/preload.
Adding a bun install step before the build ensures deps are available.
This commit is contained in:
Mark IJbema
2026-02-10 12:24:18 +01:00
parent 025dbcb4df
commit 591b55943b
@@ -78,6 +78,14 @@ function ensureBuiltBinary() {
)
}
// Ensure dependencies are installed before building.
log("Installing dependencies in opencode package...")
execSync("bun install", {
cwd: opencodeDir,
stdio: "inherit",
env: process.env,
})
// Build using the opencode package script.
execSync("bun run build --single", {
cwd: opencodeDir,