Skip to content

Commit bc93625

Browse files
committed
cli: Use build sdk command from sdk directly
1 parent ecc6001 commit bc93625

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

cli/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"scripts": {
1818
"dev": "bun run prebuild:agents && bun run src/index.tsx --cwd ..",
1919
"prebuild:agents": "bun run scripts/prebuild-agents.ts",
20-
"build:sdk": "cd ../sdk && bun run build",
2120
"build:binary": "bun ./scripts/build-binary.ts codebuff $npm_package_version",
2221
"release": "bun run scripts/release.ts",
2322
"test": "bun test",

cli/scripts/build-binary.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,17 @@ async function main() {
129129

130130
// Generate bundled agents file before compiling
131131
log('Generating bundled agents...')
132-
runCommand('bun', ['run', 'scripts/prebuild-agents.ts'], { cwd: cliRoot, env: process.env })
132+
runCommand('bun', ['run', 'scripts/prebuild-agents.ts'], {
133+
cwd: cliRoot,
134+
env: process.env,
135+
})
133136

134137
// Ensure SDK assets exist before compiling the CLI
135138
log('Building SDK dependencies...')
136-
runCommand('bun', ['run', 'build:sdk'], { cwd: cliRoot, env: process.env })
139+
runCommand('bun', ['run', '--cwd', '../sdk', 'build'], {
140+
cwd: cliRoot,
141+
env: process.env,
142+
})
137143

138144
patchOpenTuiAssetPaths()
139145
await ensureOpenTuiNativeBundle(targetInfo)

0 commit comments

Comments
 (0)