mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user