@letterblack/lbe-exec 1.2.12 → 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 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
#!/usr/bin/env node
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __esm = (fn, res) => function __init() {
|
|
@@ -2687,11 +2686,10 @@ switch (cmd) {
|
|
|
2687
2686
|
const existing = process.env.NODE_OPTIONS || "";
|
|
2688
2687
|
const hookFlag = "--require " + hookPath;
|
|
2689
2688
|
const nodeOptions = existing.includes(hookFlag) ? existing : (existing + " " + hookFlag).trim();
|
|
2690
|
-
const npmArgs = rest;
|
|
2691
|
-
const
|
|
2692
|
-
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, {
|
|
2693
2691
|
stdio: "inherit",
|
|
2694
|
-
shell:
|
|
2692
|
+
shell: true,
|
|
2695
2693
|
env: { ...process.env, NODE_OPTIONS: nodeOptions, LBE_MODE: opts.mode || "observe", LBE_ROOT: process.cwd() }
|
|
2696
2694
|
});
|
|
2697
2695
|
child.on("close", (code) => process.exit(code ?? 0));
|