We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fb7d83 commit 4e60d1fCopy full SHA for 4e60d1f
packages/core/src/v3/build/runtime.ts
@@ -2,6 +2,7 @@ import { join } from "node:path";
2
import { pathToFileURL } from "url";
3
import { BuildRuntime } from "../schemas/build.js";
4
import { dedupFlags } from "./flags.js";
5
+import { homedir } from "node:os";
6
7
export const DEFAULT_RUNTIME = "node" satisfies BuildRuntime;
8
@@ -31,7 +32,7 @@ export function execPathForRuntime(runtime: BuildRuntime): string {
31
32
return join(process.env.BUN_INSTALL_BIN, "bun");
33
}
34
- return join("~", ".bin", "bin", "bun");
35
+ return join(homedir(), ".bun", "bin", "bun");
36
default:
37
throw new Error(`Unsupported runtime ${runtime}`);
38
0 commit comments