diff --git a/packages/create-astro/src/actions/template.ts b/packages/create-astro/src/actions/template.ts index 33a8b7881a92..85b7d6f27b31 100644 --- a/packages/create-astro/src/actions/template.ts +++ b/packages/create-astro/src/actions/template.ts @@ -68,11 +68,11 @@ const FILES_TO_UPDATE = { }), }; -function getTemplateTarget(template: string, ref: string = 'latest') { - const isThirdParty = template.includes('/'); - if (isThirdParty) return template; - if (template === 'starlight') return `withastro/starlight/examples/basics`; - return `github:withastro/astro/examples/${template}#${ref}`; +function getTemplateTarget(tmpl: string, ref = 'latest') { + const isThirdParty = tmpl.includes('/'); + if (isThirdParty) return tmpl; + if (tmpl === 'starlight') return `withastro/starlight/examples/basics`; + return `github:withastro/astro/examples/${tmpl}#${ref}`; } export default async function copyTemplate(tmpl: string, ctx: Context) {