chore: update packagejson and also release script

This commit is contained in:
Quorafind 2025-09-24 10:44:51 +08:00
parent 86cbad4a47
commit a167e7d256

View file

@ -27,7 +27,8 @@ if (latestTag && semver.gt(latestTag, currentVersion)) {
}
// Parse command line arguments (support flags like --dry-run anywhere)
const args = process.argv.slice(2);
// Filter out the '--' separator that npm/pnpm uses for argument passing
const args = process.argv.slice(2).filter(arg => arg !== '--');
const knownIncrements = new Set(['patch', 'minor', 'major', 'continue']);
let increment = undefined;
const argParts = [];