@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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -4
  2. 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 isWindows = process.platform === "win32";
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: false,
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));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterblack/lbe-exec",
3
- "version": "1.2.13",
3
+ "version": "1.2.14",
4
4
  "description": "Local host-signed execution layer for LetterBlack LBE.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",