Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: minor fix to the package update version bumper (#11448)

Andrey Lushnikov9f689865b743
diff --git a/utils/bump_package_versions.js b/utils/bump_package_versions.js
index 090db4f44a..0619491962 100755
--- a/utils/bump_package_versions.js
+++ b/utils/bump_package_versions.js
@@ -24,10 +24,10 @@ const { packages, packagesToPublish } = require('./list_packages.js');
(async () => {
const version = process.argv[2];
- if (version.startsWith('v'))
- throw new Error('Version must not start with "v"');
if (!version)
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')
throw new Error(`Usage: node ${path.relative(process.cwd(), __filename)} <version>`);
const rootDir = path.join(__dirname, '..');