create-astro 4.11.0-beta.1 → 4.11.1

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/dist/index.js +8 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -442,7 +442,7 @@ function printHelp({
442
442
  if (headline) {
443
443
  message.push(
444
444
  linebreak(),
445
- `${title(commandName)} ${color.green(`v${"4.11.0-beta.1"}`)} ${headline}`
445
+ `${title(commandName)} ${color.green(`v${"4.11.1"}`)} ${headline}`
446
446
  );
447
447
  }
448
448
  if (usage) {
@@ -518,7 +518,7 @@ async function getContext(argv) {
518
518
  prompt,
519
519
  packageManager,
520
520
  username: getName(),
521
- version: getVersion(packageManager, "astro", "5.0.0-beta.12"),
521
+ version: getVersion(packageManager, "astro", "5.3.1"),
522
522
  skipHouston,
523
523
  fancy,
524
524
  add,
@@ -948,6 +948,12 @@ async function copyTemplate(tmpl, ctx) {
948
948
  cwd: ctx.cwd,
949
949
  dir: "."
950
950
  });
951
+ if (ctx.packageManager !== "npm") {
952
+ const readmePath = path5.resolve(ctx.cwd, "README.md");
953
+ const readme = fs4.readFileSync(readmePath, "utf8");
954
+ const updatedReadme = readme.replace(/\bnpm run\b/g, ctx.packageManager).replace(/\bnpm\b/g, ctx.packageManager);
955
+ fs4.writeFileSync(readmePath, updatedReadme);
956
+ }
951
957
  } catch (err) {
952
958
  if (ctx.cwd !== "." && ctx.cwd !== "./" && !ctx.cwd.startsWith("../")) {
953
959
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-astro",
3
- "version": "4.11.0-beta.1",
3
+ "version": "4.11.1",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",
@@ -26,7 +26,7 @@
26
26
  "//b": "DEPENDENCIES IS FOR UNBUNDLED PACKAGES",
27
27
  "dependencies": {
28
28
  "@astrojs/cli-kit": "^0.4.1",
29
- "@bluwy/giget-core": "^0.1.1"
29
+ "@bluwy/giget-core": "^0.1.2"
30
30
  },
31
31
  "devDependencies": {
32
32
  "arg": "^5.0.2",