fix(bun-install): use workspaceDir option instead of hardcoded cache-dir

This commit is contained in:
YeonGyu-Kim
2026-03-17 16:05:51 +09:00
parent a7301ba8a9
commit 92bc72a90b

View File

@@ -67,7 +67,7 @@ function logCapturedOutputOnFailure(outputMode: BunInstallOutputMode, output: Bu
export async function runBunInstallWithDetails(options?: RunBunInstallOptions): Promise<BunInstallResult> {
const outputMode = options?.outputMode ?? "pipe"
const cacheDir = getOpenCodeCacheDir()
const cacheDir = options?.workspaceDir ?? getOpenCodeCacheDir()
const packageJsonPath = `${cacheDir}/package.json`
if (!existsSync(packageJsonPath)) {