summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonathan Neal <jonathantneal@hotmail.com> 2021-10-22 17:50:36 -0400
committerGravatar GitHub <noreply@github.com> 2021-10-22 17:50:36 -0400
commitd5fdeefebb2e62ea91eadac17ec3056275f3358f (patch)
tree9e7f534f2fe865e8e8bb7a0fd36e116483d299c6
parent9f53699d6f587876148563ef0614bdc92781d7fd (diff)
downloadastro-d5fdeefebb2e62ea91eadac17ec3056275f3358f.tar.gz
astro-d5fdeefebb2e62ea91eadac17ec3056275f3358f.tar.zst
astro-d5fdeefebb2e62ea91eadac17ec3056275f3358f.zip
Pull examples from latest branch (#1641)
* pull examples from latest branch * changeset
-rw-r--r--.changeset/short-islands-sparkle.md5
-rw-r--r--packages/create-astro/src/index.ts2
2 files changed, 6 insertions, 1 deletions
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,