Skip to content

Commit

Permalink
fix(create-astro): fix error when don't have template input (#5404)
Browse files Browse the repository at this point in the history
  • Loading branch information
liruifengv authored Nov 15, 2022
1 parent 66992ed commit 505abfd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/violet-apricots-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-astro': patch
---

fix error when don't have template input
2 changes: 1 addition & 1 deletion packages/create-astro/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export async function main() {
{ onCancel: () => ora().info(dim('Operation cancelled. See you later, astronaut!')) }
);

if (!options.template) {
if (!options.template || options.template === true) {
ora().info(dim('No template provided. See you later, astronaut!'));
process.exit(1);
}
Expand Down

0 comments on commit 505abfd

Please sign in to comment.