diff --git a/package.json b/package.json index ecfc6e754..75bb7fdee 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "url": "https://opencollective.com/simple-icons" }, "devDependencies": { - "@inquirer/prompts": "1.0.0", + "@inquirer/prompts": "3.1.1", "chalk": "5.2.0", "editorconfig-checker": "5.0.1", "esbuild": "0.17.19", diff --git a/scripts/add-icon-data.js b/scripts/add-icon-data.js index cc9b903a1..7620b8546 100644 --- a/scripts/add-icon-data.js +++ b/scripts/add-icon-data.js @@ -58,7 +58,7 @@ const aliasesChoices = Object.entries( const getIconDataFromAnswers = (answers) => ({ title: answers.title, - hex: answers.hex.toUpperCase(), + hex: normalizeColor(answers.hex), source: answers.source, ...(answers.hasGuidelines ? { guidelines: answers.guidelines } : {}), ...(answers.hasLicense @@ -96,7 +96,6 @@ answers.title = await input({ answers.hex = await input({ message: 'Hex', validate: hexValidator, - filter: (text) => normalizeColor(text), transformer: hexTransformer, });