From 28f00566cac7688bd4b958656e1374c4e41be201 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Fri, 22 Oct 2021 15:59:02 -0400 Subject: [PATCH] Make create-astro use the `latest` branch (#1636) * Make create-astro use the `latest` branch * Adds a changeset --- .changeset/slow-panthers-punch.md | 5 +++++ packages/create-astro/src/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/slow-panthers-punch.md diff --git a/.changeset/slow-panthers-punch.md b/.changeset/slow-panthers-punch.md new file mode 100644 index 000000000..1bc0cd1bc --- /dev/null +++ b/.changeset/slow-panthers-punch.md @@ -0,0 +1,5 @@ +--- +'create-astro': patch +--- + +Updates create-astro to use the latest branch diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts index aa2cf7c5a..21fa49de1 100644 --- a/packages/create-astro/src/index.ts +++ b/packages/create-astro/src/index.ts @@ -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,