Make prompt ids case sensitive
Signed-off-by: Min Kim <minkimcello@gmail.com>
This commit is contained in:
@@ -101,12 +101,12 @@ export async function promptOptions({
|
||||
const answers = await inquirer.prompt(
|
||||
prompts.map((prompt: ConfigurablePrompt) => {
|
||||
if (typeof prompt === 'string') {
|
||||
switch (prompt.toLowerCase()) {
|
||||
switch (prompt) {
|
||||
case 'id':
|
||||
return pluginIdPrompt();
|
||||
case 'moduleid':
|
||||
case 'moduleId':
|
||||
return moduleIdIdPrompt();
|
||||
case 'npmregistry':
|
||||
case 'npmRegistry':
|
||||
return npmRegistryPrompt();
|
||||
case 'owner':
|
||||
return ownerPrompt(codeOwnersFilePath);
|
||||
|
||||
@@ -4,7 +4,7 @@ targetPath: plugins
|
||||
backendModulePrefix: true
|
||||
prompts:
|
||||
- id
|
||||
- moduleid
|
||||
- moduleId
|
||||
- owner
|
||||
additionalActions:
|
||||
- install-backend
|
||||
|
||||
@@ -7,7 +7,7 @@ prompts:
|
||||
prompt: Enter the ID of the plugin [required]
|
||||
default: scaffolder
|
||||
validate: backstage-id
|
||||
- moduleid
|
||||
- moduleId
|
||||
- owner
|
||||
additionalActions:
|
||||
- install-backend
|
||||
|
||||
Reference in New Issue
Block a user