create-astro 4.11.1 → 4.11.2

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 +6 -5
  2. package/package.json +1 -1
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.1"}`)} ${headline}`
445
+ `${title(commandName)} ${color.green(`v${"4.11.2"}`)} ${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.3.1"),
521
+ version: getVersion(packageManager, "astro", "5.7.2"),
522
522
  skipHouston,
523
523
  fancy,
524
524
  add,
@@ -628,7 +628,7 @@ async function astroAdd({
628
628
  }
629
629
  async function install({ packageManager, cwd }) {
630
630
  if (packageManager === "yarn") await ensureYarnLock({ cwd });
631
- return shell(packageManager, ["install"], { cwd, timeout: 9e4, stdio: "ignore" });
631
+ return shell(packageManager, ["add"], { cwd, timeout: 9e4, stdio: "ignore" });
632
632
  }
633
633
  async function ensureYarnLock({ cwd }) {
634
634
  const yarnLock = path.join(cwd, "yarn.lock");
@@ -883,9 +883,10 @@ async function template(ctx) {
883
883
  message: "How would you like to start your new project?",
884
884
  initial: "basics",
885
885
  choices: [
886
- { value: "basics", label: "A basic, minimal starter", hint: "(recommended)" },
886
+ { value: "basics", label: "A basic, helpful starter project", hint: "(recommended)" },
887
887
  { value: "blog", label: "Use blog template" },
888
- { value: "starlight", label: "Use docs (Starlight) template" }
888
+ { value: "starlight", label: "Use docs (Starlight) template" },
889
+ { value: "minimal", label: "Use minimal (empty) template" }
889
890
  ]
890
891
  });
891
892
  ctx.template = tmpl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-astro",
3
- "version": "4.11.1",
3
+ "version": "4.11.2",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",