komplian 0.3.1 → 0.3.2

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.
@@ -128,13 +128,9 @@ function logGhIdentity() {
128
128
  }
129
129
  }
130
130
 
131
- const isWin = process.platform === "win32";
132
-
133
131
  function cmdExists(name) {
134
- const r = isWin
135
- ? spawnSync("where", [name], { stdio: "ignore" })
136
- : spawnSync("command", ["-v", name], { shell: true, stdio: "ignore" });
137
- return r.status === 0;
132
+ const r = spawnSync(name, ["--version"], { stdio: "ignore" });
133
+ return !r.error;
138
134
  }
139
135
 
140
136
  function needCmd(name, hint = "") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "komplian",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Komplian developer workspace setup: GitHub CLI (browser login) + git clone by team. Node 18+, git, gh — no OAuth App to register.",
5
5
  "type": "module",
6
6
  "engines": {