1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.Fork = void 0;
|
4 | const child_process_1 = require("child_process");
|
5 | var Fork;
|
6 | (function (Fork) {
|
7 | function fork(env) {
|
8 | return (0, child_process_1.spawn)(process.execPath, [...process.execArgv, ...process.argv.slice(1)], {
|
9 | windowsHide: true,
|
10 | stdio: ["ignore", "ignore", "pipe", "pipe"],
|
11 | env: {
|
12 | ...process.env,
|
13 | ...env
|
14 | }
|
15 | });
|
16 | }
|
17 | Fork.fork = fork;
|
18 | })(Fork = exports.Fork || (exports.Fork = {}));
|