From 99c176fc4f5f1f5ed49b7f6408c887f7ce09299f Mon Sep 17 00:00:00 2001 From: Esoteric Slime <90862990+EsotericSlime@users.noreply.github.com> Date: Sun, 8 Sep 2024 23:16:36 +0100 Subject: [PATCH] Rename variable --- scripts/rename-project.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/rename-project.ts b/scripts/rename-project.ts index fcc66710..0cb08716 100644 --- a/scripts/rename-project.ts +++ b/scripts/rename-project.ts @@ -9,9 +9,9 @@ const commandLineArguments = process.argv.slice(2); * * Where `new-project-name` is replaced with the desired plugin name, in [kebab-case](https://developer.mozilla.org/en-US/docs/Glossary/Kebab_case) format. **/ -const projectName = commandLineArguments[0]; // npm run rename-project -- new-project-name +const newProjectName = commandLineArguments[0]; // npm run rename-project -- new-project-name -if (!projectName) { +if (!newProjectName) { console.error("A project name must be specified"); console.error("Please use the following command:"); console.error("npm run rename-project -- new-project-name");