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
|
|
51
|
-
|
|
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
|
|
58
|
+
return warn("infernoflow not resolvable in subprocesses", "Ensure npm global bin folder is in your PATH");
|
|
54
59
|
}
|
|
55
60
|
}
|
|
56
61
|
|