fix(scripts): use shell on Windows to fix spawn EINVAL in dev-runner
This commit is contained in:
parent
671a8ae554
commit
346152f67d
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ const serverScript = mode === "watch" ? "dev:watch" : "dev";
|
||||||
const child = spawn(
|
const child = spawn(
|
||||||
pnpmBin,
|
pnpmBin,
|
||||||
["--filter", "@paperclipai/server", serverScript, ...forwardedArgs],
|
["--filter", "@paperclipai/server", serverScript, ...forwardedArgs],
|
||||||
{ stdio: "inherit", env },
|
{ stdio: "inherit", env, shell: process.platform === "win32" },
|
||||||
);
|
);
|
||||||
|
|
||||||
child.on("exit", (code, signal) => {
|
child.on("exit", (code, signal) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue