Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Jun 2, 2023
1 parent 0d5168b commit 2cc4af3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/create-astro/src/actions/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2cc4af3

Please sign in to comment.