diff --git a/npm/scripts/update-lepton-x-versions.ts b/npm/scripts/update-lepton-x-versions.ts index 7bfce7108e..b5b59c079c 100644 --- a/npm/scripts/update-lepton-x-versions.ts +++ b/npm/scripts/update-lepton-x-versions.ts @@ -23,7 +23,7 @@ const LEPTON_X_PACKAGE_NAMES = [ "@abp/aspnetcore.components.server.leptonxlitetheme", ]; -function validteVersion(targetVersion) { +function validateVersion(targetVersion) { if (!targetVersion) { console.log("\x1b[31m", "Error: lepton-x targetVersion is not defined"); process.exit(1); @@ -44,7 +44,7 @@ function initCommander() { const { targetVersion } = program.opts(); - validteVersion(targetVersion); + validateVersion(targetVersion); LEPTON_X_PACKAGE_NAMES.forEach((packageName) => { const command = `yarn change-package-version -n ${packageName} -v ${targetVersion}`;