Skip to content

Commit 8bb7a2b

Browse files
fix(create-rezi): use win32 path resolution for npm fallback
1 parent 91bd245 commit 8bb7a2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/create-rezi/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
2-
import { dirname, join, relative, resolve } from "node:path";
2+
import { dirname, join, relative, resolve, win32 } from "node:path";
33
import { cwd, exit, stdin, stdout } from "node:process";
44
import { createInterface } from "node:readline/promises";
55
import * as crossSpawn from "cross-spawn";
@@ -184,7 +184,7 @@ export function resolveInstallInvocation(
184184
return { command: nodeExecPath, args: [npmExecPath, "install"] };
185185
}
186186
if (platform === "win32") {
187-
return { command: join(dirname(nodeExecPath), "npm.cmd"), args: ["install"] };
187+
return { command: win32.join(win32.dirname(nodeExecPath), "npm.cmd"), args: ["install"] };
188188
}
189189
}
190190

0 commit comments

Comments
 (0)