Make prompt ids case sensitive

Signed-off-by: Min Kim <minkimcello@gmail.com>
This commit is contained in:
Min Kim
2025-01-07 16:05:34 -05:00
parent 540995076a
commit b78767acc1
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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