create-astro 3.1.11 → 3.1.12

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 +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -355,7 +355,7 @@ function printHelp({
355
355
  if (headline) {
356
356
  message.push(
357
357
  linebreak(),
358
- `${title(commandName)} ${color.green(`v${"3.1.11"}`)} ${headline}`
358
+ `${title(commandName)} ${color.green(`v${"3.1.12"}`)} ${headline}`
359
359
  );
360
360
  }
361
361
  if (usage) {
@@ -776,11 +776,13 @@ var FILES_TO_UPDATE = {
776
776
  })
777
777
  };
778
778
  function getTemplateTarget(tmpl, ref = "latest") {
779
+ if (tmpl.startsWith("starlight")) {
780
+ const [, starter = "basics"] = tmpl.split("/");
781
+ return `withastro/starlight/examples/${starter}`;
782
+ }
779
783
  const isThirdParty = tmpl.includes("/");
780
784
  if (isThirdParty)
781
785
  return tmpl;
782
- if (tmpl === "starlight")
783
- return `withastro/starlight/examples/basics`;
784
786
  return `github:withastro/astro/examples/${tmpl}#${ref}`;
785
787
  }
786
788
  async function copyTemplate(tmpl, ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-astro",
3
- "version": "3.1.11",
3
+ "version": "3.1.12",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",