We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 313847d commit 0b5d6a0Copy full SHA for 0b5d6a0
index.ts
@@ -386,7 +386,7 @@ async function init() {
386
// so we still have to assign the default values here
387
const {
388
projectName,
389
- packageName = projectName.trim() || defaultProjectName,
+ packageName = projectName?.trim() || defaultProjectName,
390
shouldOverwrite = argv.force as boolean,
391
needsJsx = argv.jsx as boolean,
392
needsTypeScript = (argv.ts || argv.typescript) as boolean,
@@ -707,4 +707,5 @@ async function init() {
707
708
init().catch((e) => {
709
console.error(e)
710
+ process.exit(1)
711
})
0 commit comments