fix: cover Windows exe argv (#1480) (thanks @Takhoffman)
This commit is contained in:
1 parent
ea7791f2b9
commit
ee24cfb58e
4 files changed
+19
No files matched your search
@@ -116,6 +116,7 @@ if (!shouldBuild()) {
|
||||
} else {
|
||||
logRunner("Building TypeScript (dist is stale).");
|
||||
const pnpmArgs = ["exec", compiler, ...projectArgs];
|
||||
// On Windows, pnpm is a .cmd shim, so use cmd.exe for reliable resolution.
|
||||
const buildCmd = process.platform === "win32" ? "cmd.exe" : "pnpm";
|
||||
const buildArgs =
|
||||
process.platform === "win32" ? ["/d", "/s", "/c", "pnpm", ...pnpmArgs] : pnpmArgs;
|
||||
|
||||
Reference in new issue
Block a user