Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds back create-astro support for GitHub repos #3971

Merged
merged 3 commits into from
Jul 19, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
adding create-astro support for GitHub repos
  • Loading branch information
Tony Sullivan committed Jul 19, 2022
commit 4206465230af7e7ea749b6af1ae10fa2d1c743d5
4 changes: 3 additions & 1 deletion packages/create-astro/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ export async function main() {

const hash = args.commit ? `#${args.commit}` : '';

const templateTarget = `withastro/astro/examples/${options.template}#latest`;
const templateTarget = options.template.includes('/')
? options.template
: `withastro/astro/examples/${options.template}#latest`;

const emitter = degit(`${templateTarget}${hash}`, {
cache: false,
Expand Down