chore: cut v1.18.0 (#11358)

Drive-by: fix the `//utils/bump_package_versions.js` script.
This commit is contained in:
Andrey Lushnikov 2022-01-12 12:50:44 -07:00 committed by GitHub
parent 853757930d
commit 9285596806
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 28 additions and 24 deletions

18
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "playwright-internal", "name": "playwright-internal",
"version": "1.18.0-next", "version": "1.19.0-next",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playwright-internal", "name": "playwright-internal",
"version": "1.18.0-next", "version": "1.19.0-next",
"license": "Apache-2.0", "license": "Apache-2.0",
"workspaces": [ "workspaces": [
"packages/*" "packages/*"
@ -9051,7 +9051,7 @@
}, },
"packages/html-reporter": {}, "packages/html-reporter": {},
"packages/playwright": { "packages/playwright": {
"version": "1.18.0-next", "version": "1.19.0-next",
"hasInstallScript": true, "hasInstallScript": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
@ -9065,7 +9065,7 @@
} }
}, },
"packages/playwright-chromium": { "packages/playwright-chromium": {
"version": "1.18.0-next", "version": "1.19.0-next",
"hasInstallScript": true, "hasInstallScript": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
@ -9079,7 +9079,7 @@
} }
}, },
"packages/playwright-core": { "packages/playwright-core": {
"version": "1.18.0-next", "version": "1.19.0-next",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"commander": "^8.2.0", "commander": "^8.2.0",
@ -9115,7 +9115,7 @@
} }
}, },
"packages/playwright-firefox": { "packages/playwright-firefox": {
"version": "1.18.0-next", "version": "1.19.0-next",
"hasInstallScript": true, "hasInstallScript": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
@ -9130,7 +9130,7 @@
}, },
"packages/playwright-test": { "packages/playwright-test": {
"name": "@playwright/test", "name": "@playwright/test",
"version": "1.18.0-next", "version": "1.19.0-next",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@babel/code-frame": "^7.14.5", "@babel/code-frame": "^7.14.5",
@ -9165,7 +9165,7 @@
"open": "^8.3.0", "open": "^8.3.0",
"pirates": "^4.0.1", "pirates": "^4.0.1",
"pixelmatch": "^5.2.1", "pixelmatch": "^5.2.1",
"playwright-core": "=1.18.0-next", "playwright-core": "=1.19.0-next",
"pngjs": "^5.0.0", "pngjs": "^5.0.0",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"source-map-support": "^0.4.18", "source-map-support": "^0.4.18",
@ -9204,7 +9204,7 @@
} }
}, },
"packages/playwright-webkit": { "packages/playwright-webkit": {
"version": "1.18.0-next", "version": "1.19.0-next",
"hasInstallScript": true, "hasInstallScript": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {

View file

@ -1,7 +1,7 @@
{ {
"name": "playwright-internal", "name": "playwright-internal",
"private": true, "private": true,
"version": "1.18.0-next", "version": "1.19.0-next",
"description": "A high-level API to automate web browsers", "description": "A high-level API to automate web browsers",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",

View file

@ -1,6 +1,6 @@
{ {
"name": "playwright-chromium", "name": "playwright-chromium",
"version": "1.18.0-next", "version": "1.19.0-next",
"description": "A high-level API to automate Chromium", "description": "A high-level API to automate Chromium",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",
@ -26,6 +26,6 @@
"install": "node install.js" "install": "node install.js"
}, },
"dependencies": { "dependencies": {
"playwright-core": "=1.18.0-next" "playwright-core": "=1.19.0-next"
} }
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "playwright-core", "name": "playwright-core",
"version": "1.18.0-next", "version": "1.19.0-next",
"description": "A high-level API to automate web browsers", "description": "A high-level API to automate web browsers",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",

View file

@ -1,6 +1,6 @@
{ {
"name": "playwright-firefox", "name": "playwright-firefox",
"version": "1.18.0-next", "version": "1.19.0-next",
"description": "A high-level API to automate Firefox", "description": "A high-level API to automate Firefox",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",
@ -26,6 +26,6 @@
"install": "node install.js" "install": "node install.js"
}, },
"dependencies": { "dependencies": {
"playwright-core": "=1.18.0-next" "playwright-core": "=1.19.0-next"
} }
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "@playwright/test", "name": "@playwright/test",
"version": "1.18.0-next", "version": "1.19.0-next",
"description": "A high-level API to automate web browsers", "description": "A high-level API to automate web browsers",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",
@ -59,7 +59,7 @@
"open": "^8.3.0", "open": "^8.3.0",
"pirates": "^4.0.1", "pirates": "^4.0.1",
"pixelmatch": "^5.2.1", "pixelmatch": "^5.2.1",
"playwright-core": "=1.18.0-next", "playwright-core": "=1.19.0-next",
"pngjs": "^5.0.0", "pngjs": "^5.0.0",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"source-map-support": "^0.4.18", "source-map-support": "^0.4.18",

View file

@ -1,6 +1,6 @@
{ {
"name": "playwright-webkit", "name": "playwright-webkit",
"version": "1.18.0-next", "version": "1.19.0-next",
"description": "A high-level API to automate WebKit", "description": "A high-level API to automate WebKit",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",
@ -25,6 +25,6 @@
"install": "node install.js" "install": "node install.js"
}, },
"dependencies": { "dependencies": {
"playwright-core": "=1.18.0-next" "playwright-core": "=1.19.0-next"
} }
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "playwright", "name": "playwright",
"version": "1.18.0-next", "version": "1.19.0-next",
"description": "A high-level API to automate web browsers", "description": "A high-level API to automate web browsers",
"repository": "github:Microsoft/playwright", "repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev", "homepage": "https://playwright.dev",
@ -26,6 +26,6 @@
"install": "node install.js" "install": "node install.js"
}, },
"dependencies": { "dependencies": {
"playwright-core": "=1.18.0-next" "playwright-core": "=1.19.0-next"
} }
} }

View file

@ -20,10 +20,12 @@ const path = require('path');
const fs = require('fs'); const fs = require('fs');
const { execSync } = require('child_process'); const { execSync } = require('child_process');
const { packages } = require('./list_packages.js'); 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 (process.argv[2] === '--help') if (process.argv[2] === '--help')
@ -46,9 +48,11 @@ const { packages } = require('./list_packages.js');
{ {
const packageLockPath = path.join(rootDir, 'package-lock.json'); const packageLockPath = path.join(rootDir, 'package-lock.json');
const packageLock = JSON.parse(fs.readFileSync(packageLockPath, 'utf8')); const packageLock = JSON.parse(fs.readFileSync(packageLockPath, 'utf8'));
const publicPackages = new Set(packagesToPublish.map(package => path.basename(package)));
for (const package of packages.map(package => path.basename(package))) { for (const package of packages.map(package => path.basename(package))) {
const playwrightCorePackages = packageLock['packages']['packages/' + package]; const playwrightCorePackages = packageLock['packages']['packages/' + package];
playwrightCorePackages.version = version; if (publicPackages.has(package))
playwrightCorePackages.version = version;
if (playwrightCorePackages.dependencies && playwrightCorePackages.dependencies['playwright-core']) if (playwrightCorePackages.dependencies && playwrightCorePackages.dependencies['playwright-core'])
packageLock['packages']['packages/playwright-test']['dependencies']['playwright-core'] = '=' + version; packageLock['packages']['packages/playwright-test']['dependencies']['playwright-core'] = '=' + version;
} }
@ -58,4 +62,4 @@ const { packages } = require('./list_packages.js');
})().catch(err => { })().catch(err => {
console.error(err); console.error(err);
process.exit(1); process.exit(1);
}) })