mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-27 08:21:03 +02:00
Tools: Fixed setupNewRelease script when version number is over x.10
This commit is contained in:
parent
e2e9a7fef2
commit
66f1bd9c11
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user