diff options
Diffstat (limited to 'packages/create-astro/src/index.ts')
-rw-r--r-- | packages/create-astro/src/index.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts index c63cca9ea..e3487e8d4 100644 --- a/packages/create-astro/src/index.ts +++ b/packages/create-astro/src/index.ts @@ -55,7 +55,12 @@ export async function main() { ]); const hash = args.commit ? `#${args.commit}` : ''; - const emitter = degit(`snowpackjs/astro/examples/${options.template}${hash}`, { + + const templateTarget = options.template.includes('/') ? + options.template : + `snowpackjs/astro/examples/${options.template}`; + + const emitter = degit(`${templateTarget}${hash}`, { cache: false, force: true, verbose: false, |