fix(cli): prevent CLI from hanging (#2974)

* fix(cli): prevent hanging CLI

* Changeset
This commit is contained in:
Juan Martín Seery 2022-04-03 14:32:39 -03:00 committed by GitHub
parent ad3c391696
commit 824458790a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Prevent CLI from hanging

View file

@ -96,4 +96,6 @@ Please upgrade Node.js to a supported version: "${engines}"\n`);
process.exit(1);
}
main();
main()
.then(() => process.exit(0))
.catch(() => process.exit(1));