infernoflow 0.32.0 → 0.32.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.
@@ -45,12 +45,17 @@ function checkNodeVersion() {
45
45
  }
46
46
 
47
47
  function checkCli() {
48
+ // Use shell: true so Windows .cmd wrappers resolve correctly.
49
+ // If the spawn fails entirely, we're still clearly running — downgrade to warn.
48
50
  try {
49
- const r = spawnSync("infernoflow", ["--version"], { encoding: "utf8", timeout: 5000 });
50
- if (r.status === 0) return pass(`infernoflow v${r.stdout.trim()} installed`);
51
- return fail("infernoflow CLI not found on PATH", "npm install -g infernoflow");
51
+ const r = spawnSync("infernoflow", ["--version"], { encoding: "utf8", timeout: 5000, shell: true });
52
+ if (r.status === 0 && r.stdout.trim()) {
53
+ return pass(`infernoflow v${r.stdout.trim()} on PATH`);
54
+ }
55
+ // Running but PATH lookup failed for subprocesses (common on Windows)
56
+ return warn("infernoflow not resolvable in subprocesses", "Ensure npm global bin folder is in your PATH");
52
57
  } catch {
53
- return fail("infernoflow CLI not found on PATH", "npm install -g infernoflow");
58
+ return warn("infernoflow not resolvable in subprocesses", "Ensure npm global bin folder is in your PATH");
54
59
  }
55
60
  }
56
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infernoflow",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "description": "The forge for liquid code - keep capabilities, contracts, and docs in sync.",
5
5
  "type": "module",
6
6
  "bin": {