fix: address Cubic P2 issues in CLI modules

This commit is contained in:
YeonGyu-Kim
2026-02-08 21:57:34 +09:00
parent ce37924fd8
commit babcb0050a
4 changed files with 39 additions and 8 deletions
+3 -4
View File
@@ -18,8 +18,8 @@ export async function runBunInstallWithDetails(): Promise<BunInstallResult> {
try {
const proc = Bun.spawn(["bun", "install"], {
cwd: getConfigDir(),
stdout: "pipe",
stderr: "pipe",
stdout: "inherit",
stderr: "inherit",
})
let timeoutId: ReturnType<typeof setTimeout>
@@ -44,10 +44,9 @@ export async function runBunInstallWithDetails(): Promise<BunInstallResult> {
}
if (proc.exitCode !== 0) {
const stderr = await new Response(proc.stderr).text()
return {
success: false,
error: stderr.trim() || `bun install failed with exit code ${proc.exitCode}`,
error: `bun install failed with exit code ${proc.exitCode}`,
}
}