未验证 提交 75c8bd62 编写于 作者: A Asher

Fix forking in binary

上级 d9fc29fb
......@@ -141,7 +141,7 @@ export const forkModule = (modulePath: string, args: string[], options: cp.ForkO
stdio: [null, null, null, "ipc"],
};
if (isCli) {
proc = cp.spawn(process.execPath, forkArgs, options);
proc = cp.spawn(process.execPath, forkArgs, forkOptions);
} else {
proc = cp.spawn(process.execPath, ["--require", "ts-node/register", "--require", "tsconfig-paths/register", process.argv[1], ...forkArgs], forkOptions);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册