@letterblack/lbe-exec 1.2.13 → 1.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +3 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2686,11 +2686,10 @@ switch (cmd) {
|
|
|
2686
2686
|
const existing = process.env.NODE_OPTIONS || "";
|
|
2687
2687
|
const hookFlag = "--require " + hookPath;
|
|
2688
2688
|
const nodeOptions = existing.includes(hookFlag) ? existing : (existing + " " + hookFlag).trim();
|
|
2689
|
-
const npmArgs = rest;
|
|
2690
|
-
const
|
|
2691
|
-
const child = spawn(isWindows ? "npm.cmd" : "npm", npmArgs, {
|
|
2689
|
+
const npmArgs = rest.filter((v) => !v.startsWith("--mode") && v !== opts.mode);
|
|
2690
|
+
const child = spawn("npm", npmArgs, {
|
|
2692
2691
|
stdio: "inherit",
|
|
2693
|
-
shell:
|
|
2692
|
+
shell: true,
|
|
2694
2693
|
env: { ...process.env, NODE_OPTIONS: nodeOptions, LBE_MODE: opts.mode || "observe", LBE_ROOT: process.cwd() }
|
|
2695
2694
|
});
|
|
2696
2695
|
child.on("close", (code) => process.exit(code ?? 0));
|