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