Skip to content

Commit f0b3063

Browse files
committed
fix: fix undefined findIndex for new monorepositories where no existing apps
1 parent 0875951 commit f0b3063

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.suite-cli/cli/cli.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@ program
123123
}
124124
])
125125
.then(answers => {
126-
const existing_services = getExistingComponent({ key: 'services', currentDir: cwd() })
126+
let existing_services = []
127+
try {
128+
existing_services = getExistingComponent({ key: 'services', currentDir: cwd() })
129+
} catch (error) {
130+
131+
}
127132
switch (answers.resource) {
128133
case 'monorepo':
129134
// Additional prompts specific to 'monorepo' resource

0 commit comments

Comments
 (0)