* Revert "Make create-astro use the `latest` branch (#1636)"
This reverts commit 28f00566ca
.
* Adds a changeset
This commit is contained in:
parent
46d8c64a92
commit
025f5e3f22
2 changed files with 6 additions and 1 deletions
5
.changeset/early-chicken-scream.md
Normal file
5
.changeset/early-chicken-scream.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'create-astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix to revert change pointing create-astro at the latest branch
|
|
@ -64,7 +64,7 @@ export async function main() {
|
||||||
|
|
||||||
const hash = args.commit ? `#${args.commit}` : '';
|
const hash = args.commit ? `#${args.commit}` : '';
|
||||||
|
|
||||||
const templateTarget = options.template.includes('/') ? options.template : `snowpackjs/astro#latest/examples/${options.template}`;
|
const templateTarget = options.template.includes('/') ? options.template : `snowpackjs/astro/examples/${options.template}`;
|
||||||
|
|
||||||
const emitter = degit(`${templateTarget}${hash}`, {
|
const emitter = degit(`${templateTarget}${hash}`, {
|
||||||
cache: false,
|
cache: false,
|
||||||
|
|
Loading…
Reference in a new issue