Skip to content

Commit

Permalink
Update packages/create-astro/src/actions/template.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored Aug 8, 2023
1 parent a93af6b commit ba23cb6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/create-astro/src/actions/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ const FILES_TO_UPDATE = {
};

function getTemplateTarget(tmpl: string, ref = 'latest') {
if (tmpl === 'starlight') tmpl = 'starlight/basics';
const starlightMatches = tmpl.match(/^starlight\/(.+)$/);
if (starlightMatches) {
const [, starter] = starlightMatches;
if (tmpl.startsWith('starlight')) {
const [_, starter = 'basics'] = tmpl.split('/');
return `withastro/starlight/examples/${starter}`;
}
const isThirdParty = tmpl.includes('/');
Expand Down

0 comments on commit ba23cb6

Please sign in to comment.