Make create-astro use the latest branch (#1636)

* Make create-astro use the `latest` branch

* Adds a changeset
This commit is contained in:
Matthew Phillips 2021-10-22 15:59:02 -04:00 committed by GitHub
parent 6e7a14188f
commit 28f00566ca
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
---
Updates create-astro to use 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#latest/examples/${options.template}`;
const emitter = degit(`${templateTarget}${hash}`, {
cache: false,