fix: validation for bump type in check-package-version script
This commit is contained in:
@@ -21,7 +21,7 @@ const { values } = parseArgs({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!["major", "minor", "patch"].includes(values.bump)) {
|
if (values.bump !== undefined && !["major", "minor", "patch"].includes(values.bump)) {
|
||||||
console.error(`Invalid bump type: ${values.bump}. Allowed values are: major, minor, patch.`);
|
console.error(`Invalid bump type: ${values.bump}. Allowed values are: major, minor, patch.`);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user