komplian 0.3.2 → 0.3.3

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.
@@ -129,8 +129,12 @@ function logGhIdentity() {
129
129
  }
130
130
 
131
131
  function cmdExists(name) {
132
- const r = spawnSync(name, ["--version"], { stdio: "ignore" });
133
- return !r.error;
132
+ try {
133
+ const r = spawnSync(name, ["--version"], { stdio: "ignore", shell: true });
134
+ return r.status === 0;
135
+ } catch {
136
+ return false;
137
+ }
134
138
  }
135
139
 
136
140
  function needCmd(name, hint = "") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "komplian",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
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": {