create-stardrive 1.3.6 → 1.3.7

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.
Files changed (2) hide show
  1. package/bin/index.js +4 -2
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -73,9 +73,11 @@ function detectPackageManager() {
73
73
  return "npm";
74
74
  }
75
75
  function commandExists(cmd) {
76
+ if (process.platform === "win32") {
77
+ return spawnSync("where", [cmd], { stdio: "ignore" }).status === 0;
78
+ }
76
79
  return spawnSync(cmd, ["--version"], {
77
- stdio: "ignore",
78
- shell: process.platform === "win32"
80
+ stdio: "ignore"
79
81
  }).status === 0;
80
82
  }
81
83
  var devCommands = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-stardrive",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "This is the launchpad application to create the Astro Stardrive boilerplate.",
5
5
  "bin": {
6
6
  "create-stardrive": "bin/index.js"