From d5fdeefebb2e62ea91eadac17ec3056275f3358f Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Fri, 22 Oct 2021 17:50:36 -0400 Subject: [PATCH] Pull examples from latest branch (#1641) * pull examples from latest branch * changeset --- .changeset/short-islands-sparkle.md | 5 +++++ packages/create-astro/src/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/short-islands-sparkle.md diff --git a/.changeset/short-islands-sparkle.md b/.changeset/short-islands-sparkle.md new file mode 100644 index 000000000..92d558574 --- /dev/null +++ b/.changeset/short-islands-sparkle.md @@ -0,0 +1,5 @@ +--- +'create-astro': patch +--- + +Changes create-astro to pull examples from the latest branch diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts index aa2cf7c5a..3b61333e0 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/examples/${options.template}#latest`; const emitter = degit(`${templateTarget}${hash}`, { cache: false,