Skip to content

Commit

Permalink
fix(cli): fixed cli not detecting custom base repositories
Browse files Browse the repository at this point in the history
Signed-off-by: Deepak Singh Solanki <deepaksinghsolanki1989@gmail.com>

#8637
  • Loading branch information
deepaksinghsolanki1989 authored and dhmlau committed Feb 27, 2023
1 parent c4cc3cf commit 1e70be0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cli/generators/repository/index.js
Expand Up @@ -424,7 +424,9 @@ module.exports = class RepositoryGenerator extends ArtifactGenerator {
name: 'repositoryBaseClass',
message: PROMPT_BASE_REPOSITORY_CLASS,
choices: availableRepositoryList,
when: this.artifactInfo.repositoryBaseClass === undefined,
when:
this.artifactInfo.repositoryBaseClass === undefined ||
availableRepositoryList.length > 2,
default:
this.artifactInfo.repositoryBaseClass === undefined
? availableRepositoryList[0]
Expand Down

0 comments on commit 1e70be0

Please sign in to comment.