fix(scripts): reject short flag audit severity values

This commit is contained in:
Vincent Koc
2026-06-21 21:50:53 +02:00
parent d17045db6f
commit 1a5839fbd8
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -907,7 +907,7 @@ export async function runPnpmAuditProd({
}
function readSeverityValue(value, optionName) {
if (value === undefined || value === "" || value.startsWith("--")) {
if (value === undefined || value === "" || value.startsWith("-")) {
throw new Error(`${optionName} requires a value`);
}
return value;