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.
- package/komplian-onboard.mjs +2 -6
- package/package.json +1 -1
package/komplian-onboard.mjs
CHANGED
|
@@ -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 =
|
|
135
|
-
|
|
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