@theholocron/cli 5.0.0-alpha.118 → 5.0.0-alpha.119

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.mjs CHANGED
@@ -8289,10 +8289,25 @@ function buildChildArgv(entry, positionals, parentArgv) {
8289
8289
  ...forwardedFlags(parentArgv)
8290
8290
  ];
8291
8291
  }
8292
- /** Spawn `holocron <...args>` inheriting stdio; resolve with its exit code. */
8292
+ /**
8293
+ * Spawn `holocron <...args>` inheriting stdio; resolve with its exit code.
8294
+ *
8295
+ * `NO_UPDATE_NOTIFIER` is forced on in the child's env — the parent's own
8296
+ * update-notifier tail still runs after this resolves (see `launchMenu`'s
8297
+ * docstring), so without this the freshly-spawned child independently runs
8298
+ * its own `checkForUpdates()` too and the notice prints twice: once from
8299
+ * the child right after its command output, once more from the parent
8300
+ * once the child exits.
8301
+ */
8293
8302
  function spawnChild(args) {
8294
8303
  return new Promise((resolve) => {
8295
- const child = spawn(process.execPath, [process.argv[1], ...args], { stdio: "inherit" });
8304
+ const child = spawn(process.execPath, [process.argv[1], ...args], {
8305
+ stdio: "inherit",
8306
+ env: {
8307
+ ...process.env,
8308
+ NO_UPDATE_NOTIFIER: "1"
8309
+ }
8310
+ });
8296
8311
  child.on("exit", (code) => resolve(code ?? 0));
8297
8312
  child.on("error", () => resolve(1));
8298
8313
  });