Pull examples from latest branch (#1641)

* pull examples from latest branch

* changeset
This commit is contained in:
Jonathan Neal 2021-10-22 17:50:36 -04:00 committed by GitHub
parent 9f53699d6f
commit d5fdeefebb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'create-astro': patch
---
Changes create-astro to pull examples from the latest branch

View file

@ -64,7 +64,7 @@ export async function main() {
const hash = args.commit ? `#${args.commit}` : '';
const templateTarget = options.template.includes('/') ? options.template : `snowpackjs/astro/examples/${options.template}`;
const templateTarget = options.template.includes('/') ? options.template : `snowpackjs/astro/examples/${options.template}#latest`;
const emitter = degit(`${templateTarget}${hash}`, {
cache: false,