(argv)
| 114 | } |
| 115 | |
| 116 | export function parseArguments(argv) { |
| 117 | const dryRun = argv.includes('--dry-run'); |
| 118 | const positional = argv.filter((value) => value !== '--dry-run'); |
| 119 | if (positional.length !== 1) throw new Error('Usage: pnpm release:beta <9.0.0-beta.N> [--dry-run]'); |
| 120 | return { dryRun, version: positional[0] }; |
| 121 | } |
| 122 | |
| 123 | export function validateBetaVersion(version) { |
| 124 | if (!/^9\.0\.0-beta\.(0|[1-9]\d*)$/.test(version)) { |
no test coverage detected