chore: minor fix to the package update version bumper (#11448)
This commit is contained in:
parent
daa2f00bfb
commit
9f689865b7
|
|
@ -24,10 +24,10 @@ const { packages, packagesToPublish } = require('./list_packages.js');
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
const version = process.argv[2];
|
const version = process.argv[2];
|
||||||
if (version.startsWith('v'))
|
|
||||||
throw new Error('Version must not start with "v"');
|
|
||||||
if (!version)
|
if (!version)
|
||||||
throw new Error('Please specify version! See --help for more information.');
|
throw new Error('Please specify version! See --help for more information.');
|
||||||
|
if (version.startsWith('v'))
|
||||||
|
throw new Error('Version must not start with "v"');
|
||||||
if (process.argv[2] === '--help')
|
if (process.argv[2] === '--help')
|
||||||
throw new Error(`Usage: node ${path.relative(process.cwd(), __filename)} <version>`);
|
throw new Error(`Usage: node ${path.relative(process.cwd(), __filename)} <version>`);
|
||||||
const rootDir = path.join(__dirname, '..');
|
const rootDir = path.join(__dirname, '..');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue