norc-cli 0.2.0 → 0.2.1

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/index.js +8 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -43411,6 +43411,11 @@ function tailRunsMessage() {
43411
43411
  return 'norc runs --tail: not available yet \u2014 run-capture/sync to the cloud is not implemented (see shinpo notes on "runs-capture deferred"). Nothing to tail.';
43412
43412
  }
43413
43413
 
43414
+ // src/child-env.ts
43415
+ function withoutPkgEnv(command, platform = process.platform) {
43416
+ return platform === "win32" ? `set "PKG_EXECPATH=" && ${command}` : `unset PKG_EXECPATH; ${command}`;
43417
+ }
43418
+
43414
43419
  // src/commands/run.ts
43415
43420
  var import_node_child_process3 = require("node:child_process");
43416
43421
 
@@ -43422,7 +43427,7 @@ var import_node_os3 = require("node:os");
43422
43427
  var import_node_path2 = require("node:path");
43423
43428
 
43424
43429
  // src/version.ts
43425
- var VERSION2 = "0.2.0";
43430
+ var VERSION2 = "0.2.1";
43426
43431
 
43427
43432
  // src/host-details.ts
43428
43433
  var ARCH = { x64: "x86_64", arm64: "arm64", ia32: "x86", arm: "arm" };
@@ -43673,7 +43678,7 @@ function decodeOutputTail(tail) {
43673
43678
  }
43674
43679
  function realSpawnCommand(command) {
43675
43680
  return new Promise((resolve) => {
43676
- const child = (0, import_node_child_process3.spawn)(command.join(" "), { stdio: ["inherit", "pipe", "pipe"], shell: true });
43681
+ const child = (0, import_node_child_process3.spawn)(withoutPkgEnv(command.join(" ")), { stdio: ["inherit", "pipe", "pipe"], shell: true });
43677
43682
  let tail = Buffer.alloc(0);
43678
43683
  let outputTail = Buffer.alloc(0);
43679
43684
  child.stdout?.on("data", (chunk) => {
@@ -43979,7 +43984,7 @@ function pruneExpiredExecuteNonces(nonces, nowSec) {
43979
43984
  }
43980
43985
  function spawnWrappedCommand(command) {
43981
43986
  return new Promise((resolve, reject) => {
43982
- const child = (0, import_node_child_process5.spawn)(command, { shell: true, detached: true, stdio: "ignore" });
43987
+ const child = (0, import_node_child_process5.spawn)(withoutPkgEnv(command), { shell: true, detached: true, stdio: "ignore" });
43983
43988
  child.once("spawn", () => {
43984
43989
  child.unref();
43985
43990
  resolve();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "norc-cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Headless cron job scheduler for norc — manage crontab, pair machines, run the bridge daemon.",
5
5
  "homepage": "https://norc.app/cli",
6
6
  "repository": {