diff options
author | 2022-09-06 08:41:36 -0400 | |
---|---|---|
committer | 2022-09-06 08:41:36 -0400 | |
commit | e6c80843f87e1c8cf84bcbf483ededb06f61ac48 (patch) | |
tree | 2c4aded8ea743c9bcffa7aaaa2bd1d474bb38b8d | |
parent | 9bcf3c6542e9b2eda585f7fea100c662f09a2ede (diff) | |
download | astro-e6c80843f87e1c8cf84bcbf483ededb06f61ac48.tar.gz astro-e6c80843f87e1c8cf84bcbf483ededb06f61ac48.tar.zst astro-e6c80843f87e1c8cf84bcbf483ededb06f61ac48.zip |
use unused self-documenting variable (#4605)
-rw-r--r-- | packages/create-astro/src/index.ts | 3 |
1 files changed, 1 insertions, 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`; |