mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +08:00
fix increment-version (#3306)
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
|
||||
const {exec} = require('child-process-promise');
|
||||
const argv = require('minimist')(process.argv.slice(2));
|
||||
const increment = argv._[0];
|
||||
const increment = argv.i;
|
||||
const validIncrements = new Set(['minor', 'patch', 'prerelease']);
|
||||
if (!validIncrements.has(increment)) {
|
||||
console.error(`Invalid value for increment: ${increment}`);
|
||||
|
Reference in New Issue
Block a user