Skip to content

Commit 4e60d1f

Browse files
committed
fix fallback bun path
1 parent 6fb7d83 commit 4e60d1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/v3/build/runtime.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { join } from "node:path";
22
import { pathToFileURL } from "url";
33
import { BuildRuntime } from "../schemas/build.js";
44
import { dedupFlags } from "./flags.js";
5+
import { homedir } from "node:os";
56

67
export const DEFAULT_RUNTIME = "node" satisfies BuildRuntime;
78

@@ -31,7 +32,7 @@ export function execPathForRuntime(runtime: BuildRuntime): string {
3132
return join(process.env.BUN_INSTALL_BIN, "bun");
3233
}
3334

34-
return join("~", ".bin", "bin", "bun");
35+
return join(homedir(), ".bun", "bin", "bun");
3536
default:
3637
throw new Error(`Unsupported runtime ${runtime}`);
3738
}

0 commit comments

Comments
 (0)