From e6c80843f87e1c8cf84bcbf483ededb06f61ac48 Mon Sep 17 00:00:00 2001 From: Dan Jutan Date: Tue, 6 Sep 2022 08:41:36 -0400 Subject: [PATCH] use unused self-documenting variable (#4605) --- packages/create-astro/src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts index 3e7d4f4d2..186650d9e 100644 --- a/packages/create-astro/src/index.ts +++ b/packages/create-astro/src/index.ts @@ -116,9 +116,8 @@ export async function main() { const hash = args.commit ? `#${args.commit}` : ''; - // Don't touch the template name if a GitHub repo was provided, ex: `--template cassidoo/shopify-react-astro` const isThirdParty = options.template.includes('/'); - const templateTarget = options.template.includes('/') + const templateTarget = isThirdParty ? options.template : `withastro/astro/examples/${options.template}#latest`;