Tools: Fixed setupNewRelease script when version number is over x.10

pull/7459/head
Laurent Cozic 2022-12-15 22:06:22 +00:00
parent e2e9a7fef2
commit 66f1bd9c11
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import * as fs from 'fs-extra';
import * as path from 'path';
import yargs = require('yargs');
const rootDir = path.dirname(path.dirname(__dirname));
@ -107,8 +108,9 @@ function iosVersionHack(majorMinorVersion: string) {
}
async function main() {
const argv: any = require('yargs').parserConfiguration({
const argv: any = yargs.parserConfiguration({
'parse-numbers': false,
'parse-positional-numbers': false,
}).argv;
if (!argv._ || !argv._.length) throw new Error('Please specify the major.minor version, eg. 1.2');