create-stardrive 1.2.1 → 1.2.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.
Files changed (2) hide show
  1. package/bin/index.js +8 -1
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -229,7 +229,8 @@ function removeCloudflare(targetDir2) {
229
229
  "scripts/purgeCloudflareCache.js",
230
230
  "worker-configuration.d.ts",
231
231
  "wrangler.jsonc",
232
- "public/_headers"
232
+ "public/_headers",
233
+ "public/_redirects"
233
234
  ]);
234
235
  editFile(targetDir2, "astro.config.ts", (content) => {
235
236
  const withoutImport = removeLines(
@@ -448,6 +449,12 @@ function calibratePackageJson(targetDir2, projectName2, pm2) {
448
449
  if (pkg.scripts) {
449
450
  delete pkg.scripts["sync-version"];
450
451
  delete pkg.scripts["prebuild"];
452
+ if (pkg.scripts["fix"]) {
453
+ pkg.scripts["fix"] = pkg.scripts["fix"].replace(
454
+ "npm run sync-version && ",
455
+ ""
456
+ );
457
+ }
451
458
  }
452
459
  if (pm2 === "pnpm") {
453
460
  pkg.packageManager = `pnpm@${execSync2("pnpm --version").toString().trim()}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-stardrive",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "This is the launchpad application to create the Astro Stardrive boilerplate.",
5
5
  "bin": {
6
6
  "create-stardrive": "bin/index.js"