From 2e316d5d403bf747f601563563e5661d9957f3b8 Mon Sep 17 00:00:00 2001 From: Ilenia <26656284+ilenia-magoni@users.noreply.github.com> Date: Fri, 22 Mar 2024 14:46:24 +0100 Subject: [PATCH] fix(tools): adjust message short name to dashed name (#54184) --- tools/challenge-helper-scripts/create-project.ts | 4 ++-- .../challenge-helper-scripts/helpers/new-challenge-prompts.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/challenge-helper-scripts/create-project.ts b/tools/challenge-helper-scripts/create-project.ts index a743573c6a2..3e28d13c2f4 100644 --- a/tools/challenge-helper-scripts/create-project.ts +++ b/tools/challenge-helper-scripts/create-project.ts @@ -198,10 +198,10 @@ void prompt([ }, { name: 'block', - message: 'What is the short name (in kebab-case) for this project?', + message: 'What is the dashed name (in kebab-case) for this project?', validate: (block: string) => { if (!block.length) { - return 'please enter a short name'; + return 'please enter a dashed name'; } if (/[^a-z0-9-]/.test(block)) { return 'please use alphanumerical characters and kebab case'; diff --git a/tools/challenge-helper-scripts/helpers/new-challenge-prompts.ts b/tools/challenge-helper-scripts/helpers/new-challenge-prompts.ts index 7532cf473c8..75887150c28 100644 --- a/tools/challenge-helper-scripts/helpers/new-challenge-prompts.ts +++ b/tools/challenge-helper-scripts/helpers/new-challenge-prompts.ts @@ -23,10 +23,10 @@ export const newChallengePrompts = async (): Promise<{ const dashedName = await prompt<{ value: string }>({ name: 'value', - message: 'What is the short name (in kebab-case) for this challenge?', + message: 'What is the dashed name (in kebab-case) for this challenge?', validate: (block: string) => { if (!block.length) { - return 'please enter a short name'; + return 'please enter a dashed name'; } if (/[^a-z0-9-]/.test(block)) { return 'please use alphanumerical characters and kebab case';