@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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -5
  2. 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 isWindows = process.platform === "win32";
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: false,
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));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterblack/lbe-exec",
3
- "version": "1.2.12",
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",