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.
- package/bin/index.js +3 -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
|
|
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)) {
|