fix(create-astro): fix error when don't have template input (#5404)
This commit is contained in:
parent
66992ed700
commit
505abfd643
2 changed files with 6 additions and 1 deletions
5
.changeset/violet-apricots-smash.md
Normal file
5
.changeset/violet-apricots-smash.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'create-astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix error when don't have template input
|
|
@ -163,7 +163,7 @@ export async function main() {
|
||||||
{ onCancel: () => ora().info(dim('Operation cancelled. See you later, astronaut!')) }
|
{ 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!'));
|
ora().info(dim('No template provided. See you later, astronaut!'));
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue