create-stardrive 1.3.4 → 1.3.6

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 +3 -2
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -74,7 +74,8 @@ function detectPackageManager() {
74
74
  }
75
75
  function commandExists(cmd) {
76
76
  return spawnSync(cmd, ["--version"], {
77
- stdio: "ignore"
77
+ stdio: "ignore",
78
+ shell: process.platform === "win32"
78
79
  }).status === 0;
79
80
  }
80
81
  var devCommands = {
@@ -306,7 +307,7 @@ function removeCloudflare(targetDir2) {
306
307
  content,
307
308
  /^import cloudflare from ['"]@astrojs\/cloudflare['"];/
308
309
  );
309
- return removeLines(withoutImport, /^\s*adapter: cloudflare\(/);
310
+ return removeBraceBlock(withoutImport, /^\s*adapter:\s*cloudflare\(/m);
310
311
  });
311
312
  const packageJsonPath = path.join(targetDir2, "package.json");
312
313
  if (fs.existsSync(packageJsonPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-stardrive",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "This is the launchpad application to create the Astro Stardrive boilerplate.",
5
5
  "bin": {
6
6
  "create-stardrive": "bin/index.js"