mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-23 18:15:44 +02:00
fix: cover Windows exe argv (#1480) (thanks @Takhoffman)
This commit is contained in:
@@ -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