diff --git a/package-lock.json b/package-lock.json index 85a7f20de0..fa4d003d99 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7516,7 +7516,7 @@ "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "=1.19.0-next" + "playwright-core": "1.19.0-next" }, "bin": { "playwright": "cli.js" @@ -7530,7 +7530,7 @@ "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "=1.19.0-next" + "playwright-core": "1.19.0-next" }, "bin": { "playwright": "cli.js" @@ -7543,22 +7543,22 @@ "version": "1.19.0-next", "license": "Apache-2.0", "dependencies": { - "commander": "^8.3.0", - "debug": "^4.3.3", - "extract-zip": "^2.0.1", - "https-proxy-agent": "^5.0.0", - "jpeg-js": "^0.4.3", - "mime": "^3.0.0", - "pngjs": "^6.0.0", - "progress": "^2.0.3", - "proper-lockfile": "^4.1.2", - "proxy-from-env": "^1.1.0", - "rimraf": "^3.0.2", - "socks-proxy-agent": "^6.1.1", - "stack-utils": "^2.0.5", - "ws": "^8.4.2", - "yauzl": "^2.10.0", - "yazl": "^2.5.1" + "commander": "8.3.0", + "debug": "4.3.3", + "extract-zip": "2.0.1", + "https-proxy-agent": "5.0.0", + "jpeg-js": "0.4.3", + "mime": "3.0.0", + "pngjs": "6.0.0", + "progress": "2.0.3", + "proper-lockfile": "4.1.2", + "proxy-from-env": "1.1.0", + "rimraf": "3.0.2", + "socks-proxy-agent": "6.1.1", + "stack-utils": "2.0.5", + "ws": "8.4.2", + "yauzl": "2.10.0", + "yazl": "2.5.1" }, "bin": { "playwright": "cli.js" @@ -7580,7 +7580,7 @@ "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "=1.19.0-next" + "playwright-core": "1.19.0-next" }, "bin": { "playwright": "cli.js" @@ -7594,44 +7594,44 @@ "version": "1.19.0-next", "license": "Apache-2.0", "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/core": "^7.16.12", - "@babel/plugin-proposal-class-properties": "^7.16.7", - "@babel/plugin-proposal-dynamic-import": "^7.16.7", - "@babel/plugin-proposal-export-namespace-from": "^7.16.7", - "@babel/plugin-proposal-logical-assignment-operators": "^7.16.7", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7", - "@babel/plugin-proposal-numeric-separator": "^7.16.7", - "@babel/plugin-proposal-optional-chaining": "^7.16.7", - "@babel/plugin-proposal-private-methods": "^7.16.11", - "@babel/plugin-proposal-private-property-in-object": "^7.16.7", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-transform-modules-commonjs": "^7.16.8", - "@babel/plugin-transform-react-jsx": "^7.16.7", - "@babel/preset-typescript": "^7.16.7", - "babel-plugin-module-resolver": "^4.1.0", + "@babel/code-frame": "7.16.7", + "@babel/core": "7.16.12", + "@babel/plugin-proposal-class-properties": "7.16.7", + "@babel/plugin-proposal-dynamic-import": "7.16.7", + "@babel/plugin-proposal-export-namespace-from": "7.16.7", + "@babel/plugin-proposal-logical-assignment-operators": "7.16.7", + "@babel/plugin-proposal-nullish-coalescing-operator": "7.16.7", + "@babel/plugin-proposal-numeric-separator": "7.16.7", + "@babel/plugin-proposal-optional-chaining": "7.16.7", + "@babel/plugin-proposal-private-methods": "7.16.11", + "@babel/plugin-proposal-private-property-in-object": "7.16.7", + "@babel/plugin-syntax-async-generators": "7.8.4", + "@babel/plugin-syntax-json-strings": "7.8.3", + "@babel/plugin-syntax-object-rest-spread": "7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "7.8.3", + "@babel/plugin-transform-modules-commonjs": "7.16.8", + "@babel/plugin-transform-react-jsx": "7.16.7", + "@babel/preset-typescript": "7.16.7", + "babel-plugin-module-resolver": "4.1.0", "colors": "1.4.0", - "commander": "^8.3.0", - "debug": "^4.3.3", - "expect": "=27.2.5", - "jest-matcher-utils": "=27.2.5", - "jpeg-js": "^0.4.3", - "json5": "^2.2.0", - "mime": "^3.0.0", - "minimatch": "^3.0.4", - "ms": "^2.1.3", - "open": "^8.4.0", - "pirates": "=4.0.4", - "pixelmatch": "^5.2.1", - "playwright-core": "=1.19.0-next", - "pngjs": "^6.0.0", - "rimraf": "^3.0.2", - "source-map-support": "^0.5.21", - "stack-utils": "^2.0.5", - "yazl": "^2.5.1" + "commander": "8.3.0", + "debug": "4.3.3", + "expect": "27.2.5", + "jest-matcher-utils": "27.2.5", + "jpeg-js": "0.4.3", + "json5": "2.2.0", + "mime": "3.0.0", + "minimatch": "3.0.4", + "ms": "2.1.3", + "open": "8.4.0", + "pirates": "4.0.4", + "pixelmatch": "5.2.1", + "playwright-core": "1.19.0-next", + "pngjs": "6.0.0", + "rimraf": "3.0.2", + "source-map-support": "0.5.21", + "stack-utils": "2.0.5", + "yazl": "2.5.1" }, "bin": { "playwright": "cli.js" @@ -7666,7 +7666,7 @@ "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "=1.19.0-next" + "playwright-core": "1.19.0-next" }, "bin": { "playwright": "cli.js" @@ -8403,44 +8403,44 @@ "@playwright/test": { "version": "file:packages/playwright-test", "requires": { - "@babel/code-frame": "^7.16.7", - "@babel/core": "^7.16.12", - "@babel/plugin-proposal-class-properties": "^7.16.7", - "@babel/plugin-proposal-dynamic-import": "^7.16.7", - "@babel/plugin-proposal-export-namespace-from": "^7.16.7", - "@babel/plugin-proposal-logical-assignment-operators": "^7.16.7", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7", - "@babel/plugin-proposal-numeric-separator": "^7.16.7", - "@babel/plugin-proposal-optional-chaining": "^7.16.7", - "@babel/plugin-proposal-private-methods": "^7.16.11", - "@babel/plugin-proposal-private-property-in-object": "^7.16.7", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-transform-modules-commonjs": "^7.16.8", - "@babel/plugin-transform-react-jsx": "^7.16.7", - "@babel/preset-typescript": "^7.16.7", - "babel-plugin-module-resolver": "^4.1.0", + "@babel/code-frame": "7.16.7", + "@babel/core": "7.16.12", + "@babel/plugin-proposal-class-properties": "7.16.7", + "@babel/plugin-proposal-dynamic-import": "7.16.7", + "@babel/plugin-proposal-export-namespace-from": "7.16.7", + "@babel/plugin-proposal-logical-assignment-operators": "7.16.7", + "@babel/plugin-proposal-nullish-coalescing-operator": "7.16.7", + "@babel/plugin-proposal-numeric-separator": "7.16.7", + "@babel/plugin-proposal-optional-chaining": "7.16.7", + "@babel/plugin-proposal-private-methods": "7.16.11", + "@babel/plugin-proposal-private-property-in-object": "7.16.7", + "@babel/plugin-syntax-async-generators": "7.8.4", + "@babel/plugin-syntax-json-strings": "7.8.3", + "@babel/plugin-syntax-object-rest-spread": "7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "7.8.3", + "@babel/plugin-transform-modules-commonjs": "7.16.8", + "@babel/plugin-transform-react-jsx": "7.16.7", + "@babel/preset-typescript": "7.16.7", + "babel-plugin-module-resolver": "4.1.0", "colors": "1.4.0", - "commander": "^8.3.0", - "debug": "^4.3.3", - "expect": "=27.2.5", - "jest-matcher-utils": "=27.2.5", - "jpeg-js": "^0.4.3", - "json5": "^2.2.0", - "mime": "^3.0.0", - "minimatch": "^3.0.4", - "ms": "^2.1.3", - "open": "^8.4.0", - "pirates": "=4.0.4", - "pixelmatch": "^5.2.1", - "playwright-core": "=1.19.0-next", - "pngjs": "^6.0.0", - "rimraf": "^3.0.2", - "source-map-support": "^0.5.21", - "stack-utils": "^2.0.5", - "yazl": "^2.5.1" + "commander": "8.3.0", + "debug": "4.3.3", + "expect": "27.2.5", + "jest-matcher-utils": "27.2.5", + "jpeg-js": "0.4.3", + "json5": "2.2.0", + "mime": "3.0.0", + "minimatch": "3.0.4", + "ms": "2.1.3", + "open": "8.4.0", + "pirates": "4.0.4", + "pixelmatch": "5.2.1", + "playwright-core": "1.19.0-next", + "pngjs": "6.0.0", + "rimraf": "3.0.2", + "source-map-support": "0.5.21", + "stack-utils": "2.0.5", + "yazl": "2.5.1" }, "dependencies": { "commander": { @@ -12100,34 +12100,34 @@ "playwright": { "version": "file:packages/playwright", "requires": { - "playwright-core": "=1.19.0-next" + "playwright-core": "1.19.0-next" } }, "playwright-chromium": { "version": "file:packages/playwright-chromium", "requires": { - "playwright-core": "=1.19.0-next" + "playwright-core": "1.19.0-next" } }, "playwright-core": { "version": "file:packages/playwright-core", "requires": { - "commander": "^8.3.0", - "debug": "^4.3.3", - "extract-zip": "^2.0.1", - "https-proxy-agent": "^5.0.0", - "jpeg-js": "^0.4.3", - "mime": "^3.0.0", - "pngjs": "^6.0.0", - "progress": "^2.0.3", - "proper-lockfile": "^4.1.2", - "proxy-from-env": "^1.1.0", - "rimraf": "^3.0.2", - "socks-proxy-agent": "^6.1.1", - "stack-utils": "^2.0.5", - "ws": "^8.4.2", - "yauzl": "^2.10.0", - "yazl": "^2.5.1" + "commander": "8.3.0", + "debug": "4.3.3", + "extract-zip": "2.0.1", + "https-proxy-agent": "5.0.0", + "jpeg-js": "0.4.3", + "mime": "3.0.0", + "pngjs": "6.0.0", + "progress": "2.0.3", + "proper-lockfile": "4.1.2", + "proxy-from-env": "1.1.0", + "rimraf": "3.0.2", + "socks-proxy-agent": "6.1.1", + "stack-utils": "2.0.5", + "ws": "8.4.2", + "yauzl": "2.10.0", + "yazl": "2.5.1" }, "dependencies": { "commander": { @@ -12140,13 +12140,13 @@ "playwright-firefox": { "version": "file:packages/playwright-firefox", "requires": { - "playwright-core": "=1.19.0-next" + "playwright-core": "1.19.0-next" } }, "playwright-webkit": { "version": "file:packages/playwright-webkit", "requires": { - "playwright-core": "=1.19.0-next" + "playwright-core": "1.19.0-next" } }, "pngjs": { diff --git a/packages/playwright-chromium/package.json b/packages/playwright-chromium/package.json index 5328ce1e68..1d826b8a17 100644 --- a/packages/playwright-chromium/package.json +++ b/packages/playwright-chromium/package.json @@ -26,6 +26,6 @@ "install": "node install.js" }, "dependencies": { - "playwright-core": "=1.19.0-next" + "playwright-core": "1.19.0-next" } } diff --git a/packages/playwright-core/package.json b/packages/playwright-core/package.json index cd96911c1d..83c640e46e 100644 --- a/packages/playwright-core/package.json +++ b/packages/playwright-core/package.json @@ -37,21 +37,21 @@ "playwright": "./cli.js" }, "dependencies": { - "commander": "^8.3.0", - "debug": "^4.3.3", - "extract-zip": "^2.0.1", - "https-proxy-agent": "^5.0.0", - "jpeg-js": "^0.4.3", - "mime": "^3.0.0", - "pngjs": "^6.0.0", - "progress": "^2.0.3", - "proper-lockfile": "^4.1.2", - "proxy-from-env": "^1.1.0", - "rimraf": "^3.0.2", - "socks-proxy-agent": "^6.1.1", - "stack-utils": "^2.0.5", - "ws": "^8.4.2", - "yauzl": "^2.10.0", - "yazl": "^2.5.1" + "commander": "8.3.0", + "debug": "4.3.3", + "extract-zip": "2.0.1", + "https-proxy-agent": "5.0.0", + "jpeg-js": "0.4.3", + "mime": "3.0.0", + "pngjs": "6.0.0", + "progress": "2.0.3", + "proper-lockfile": "4.1.2", + "proxy-from-env": "1.1.0", + "rimraf": "3.0.2", + "socks-proxy-agent": "6.1.1", + "stack-utils": "2.0.5", + "ws": "8.4.2", + "yauzl": "2.10.0", + "yazl": "2.5.1" } } diff --git a/packages/playwright-core/src/grid/gridAgent.ts b/packages/playwright-core/src/grid/gridAgent.ts index 998bf9f0f4..7bce0f3e45 100644 --- a/packages/playwright-core/src/grid/gridAgent.ts +++ b/packages/playwright-core/src/grid/gridAgent.ts @@ -20,12 +20,12 @@ import { fork } from 'child_process'; import { getPlaywrightVersion } from '../utils/utils'; export function launchGridAgent(agentId: string, gridURL: string) { - const log = debug(`[agent ${agentId}]`); + const log = debug(`pw:grid:agent:${agentId}`); log('created'); const params = new URLSearchParams(); params.set('pwVersion', getPlaywrightVersion(true /* majorMinorOnly */)); params.set('agentId', agentId); - const ws = new WebSocket(gridURL + `/registerAgent?` + params.toString()); + const ws = new WebSocket(gridURL.replace('http://', 'ws://') + `/registerAgent?` + params.toString()); ws.on('message', (workerId: string) => { log('Worker requested ' + workerId); fork(require.resolve('./gridWorker.js'), [gridURL, agentId, workerId], { detached: true }); diff --git a/packages/playwright-core/src/grid/gridServer.ts b/packages/playwright-core/src/grid/gridServer.ts index 41e03a7445..e9f212de70 100644 --- a/packages/playwright-core/src/grid/gridServer.ts +++ b/packages/playwright-core/src/grid/gridServer.ts @@ -65,7 +65,7 @@ class GridWorker extends EventEmitter { constructor(clientSocket: WebSocket) { super(); - this._log = debug(`[worker ${this.workerId}]`); + this._log = debug(`pw:grid:worker${this.workerId}`); this._clientSocket = clientSocket; clientSocket.on('close', (code: number, reason: string) => this.closeWorker(WSErrors.NO_ERROR)); clientSocket.on('error', (error: Error) => this.closeWorker(WSErrors.CLIENT_SOCKET_ERROR)); @@ -110,7 +110,7 @@ class GridAgent extends EventEmitter { constructor(capacity = Infinity, creationTimeout = 5 * 60000, retireTimeout = 30000) { super(); this._capacity = capacity; - this._log = debug(`[agent ${this.agentId}]`); + this._log = debug(`pw:grid:agent${this.agentId}`); this.setStatus('created'); this._retireTimeout = retireTimeout; this._agentCreationTimeoutId = setTimeout(() => { @@ -196,7 +196,7 @@ export class GridServer { private _pwVersion: string; constructor(factory: GridFactory, authToken: string = '') { - this._log = debug(`[grid]`); + this._log = debug(`pw:grid:server`); this._authToken = authToken || ''; this._server = new HttpServer(); this._factory = factory; diff --git a/packages/playwright-core/src/grid/gridWorker.ts b/packages/playwright-core/src/grid/gridWorker.ts index 21ac465918..5ddf6eb6fc 100644 --- a/packages/playwright-core/src/grid/gridWorker.ts +++ b/packages/playwright-core/src/grid/gridWorker.ts @@ -22,9 +22,9 @@ import { createPlaywright } from '../server/playwright'; import { gracefullyCloseAll } from '../utils/processLauncher'; function launchGridWorker(gridURL: string, agentId: string, workerId: string) { - const log = debug(`[worker ${workerId}]`); + const log = debug(`pw:grid:worker${workerId}`); log('created'); - const ws = new WebSocket(gridURL + `/registerWorker?agentId=${agentId}&workerId=${workerId}`); + const ws = new WebSocket(gridURL.replace('http://', 'ws://') + `/registerWorker?agentId=${agentId}&workerId=${workerId}`); const dispatcherConnection = new DispatcherConnection(); dispatcherConnection.onmessage = message => ws.send(JSON.stringify(message)); ws.once('open', () => { diff --git a/packages/playwright-firefox/package.json b/packages/playwright-firefox/package.json index ffbab4ed12..0c050f1cf9 100644 --- a/packages/playwright-firefox/package.json +++ b/packages/playwright-firefox/package.json @@ -26,6 +26,6 @@ "install": "node install.js" }, "dependencies": { - "playwright-core": "=1.19.0-next" + "playwright-core": "1.19.0-next" } } diff --git a/packages/playwright-test/package.json b/packages/playwright-test/package.json index 73888bb5c4..bcdacec143 100644 --- a/packages/playwright-test/package.json +++ b/packages/playwright-test/package.json @@ -27,43 +27,43 @@ }, "license": "Apache-2.0", "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/core": "^7.16.12", - "@babel/plugin-proposal-class-properties": "^7.16.7", - "@babel/plugin-proposal-dynamic-import": "^7.16.7", - "@babel/plugin-proposal-export-namespace-from": "^7.16.7", - "@babel/plugin-proposal-logical-assignment-operators": "^7.16.7", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7", - "@babel/plugin-proposal-numeric-separator": "^7.16.7", - "@babel/plugin-proposal-optional-chaining": "^7.16.7", - "@babel/plugin-proposal-private-methods": "^7.16.11", - "@babel/plugin-proposal-private-property-in-object": "^7.16.7", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-transform-modules-commonjs": "^7.16.8", - "@babel/plugin-transform-react-jsx": "^7.16.7", - "@babel/preset-typescript": "^7.16.7", - "babel-plugin-module-resolver": "^4.1.0", + "@babel/code-frame": "7.16.7", + "@babel/core": "7.16.12", + "@babel/plugin-proposal-class-properties": "7.16.7", + "@babel/plugin-proposal-dynamic-import": "7.16.7", + "@babel/plugin-proposal-export-namespace-from": "7.16.7", + "@babel/plugin-proposal-logical-assignment-operators": "7.16.7", + "@babel/plugin-proposal-nullish-coalescing-operator": "7.16.7", + "@babel/plugin-proposal-numeric-separator": "7.16.7", + "@babel/plugin-proposal-optional-chaining": "7.16.7", + "@babel/plugin-proposal-private-methods": "7.16.11", + "@babel/plugin-proposal-private-property-in-object": "7.16.7", + "@babel/plugin-syntax-async-generators": "7.8.4", + "@babel/plugin-syntax-json-strings": "7.8.3", + "@babel/plugin-syntax-object-rest-spread": "7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "7.8.3", + "@babel/plugin-transform-modules-commonjs": "7.16.8", + "@babel/plugin-transform-react-jsx": "7.16.7", + "@babel/preset-typescript": "7.16.7", + "babel-plugin-module-resolver": "4.1.0", "colors": "1.4.0", - "commander": "^8.3.0", - "debug": "^4.3.3", - "expect": "=27.2.5", - "jest-matcher-utils": "=27.2.5", - "jpeg-js": "^0.4.3", - "json5": "^2.2.0", - "mime": "^3.0.0", - "minimatch": "^3.0.4", - "ms": "^2.1.3", - "open": "^8.4.0", - "pirates": "=4.0.4", - "pixelmatch": "^5.2.1", - "playwright-core": "=1.19.0-next", - "pngjs": "^6.0.0", - "rimraf": "^3.0.2", - "source-map-support": "^0.5.21", - "stack-utils": "^2.0.5", - "yazl": "^2.5.1" + "commander": "8.3.0", + "debug": "4.3.3", + "expect": "27.2.5", + "jest-matcher-utils": "27.2.5", + "jpeg-js": "0.4.3", + "json5": "2.2.0", + "mime": "3.0.0", + "minimatch": "3.0.4", + "ms": "2.1.3", + "open": "8.4.0", + "pirates": "4.0.4", + "pixelmatch": "5.2.1", + "playwright-core": "1.19.0-next", + "pngjs": "6.0.0", + "rimraf": "3.0.2", + "source-map-support": "0.5.21", + "stack-utils": "2.0.5", + "yazl": "2.5.1" } } diff --git a/packages/playwright-webkit/package.json b/packages/playwright-webkit/package.json index 7b2b4b850d..813e46cc54 100644 --- a/packages/playwright-webkit/package.json +++ b/packages/playwright-webkit/package.json @@ -25,6 +25,6 @@ "install": "node install.js" }, "dependencies": { - "playwright-core": "=1.19.0-next" + "playwright-core": "1.19.0-next" } } diff --git a/packages/playwright/package.json b/packages/playwright/package.json index c822b9543c..3623f4b1ad 100644 --- a/packages/playwright/package.json +++ b/packages/playwright/package.json @@ -26,6 +26,6 @@ "install": "node install.js" }, "dependencies": { - "playwright-core": "=1.19.0-next" + "playwright-core": "1.19.0-next" } } diff --git a/tests/config/testMode.ts b/tests/config/testMode.ts index 6f470cbc6a..9b00ec3c34 100644 --- a/tests/config/testMode.ts +++ b/tests/config/testMode.ts @@ -44,12 +44,12 @@ export class ServiceTestMode implements TestMode { private _gridClient: GridClient; async setup() { - this._gridClient = await GridClient.connect('http://localhost:3333'); + this._gridClient = await GridClient.connect('ws://localhost:3333'); return this._gridClient.playwright(); } async teardown() { - await this._gridClient.close(); + this._gridClient.close(); } } diff --git a/utils/bump_package_versions.js b/utils/bump_package_versions.js index 0619491962..3ccf2bac99 100755 --- a/utils/bump_package_versions.js +++ b/utils/bump_package_versions.js @@ -54,7 +54,7 @@ const { packages, packagesToPublish } = require('./list_packages.js'); if (publicPackages.has(package)) playwrightCorePackages.version = version; 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; } fs.writeFileSync(packageLockPath, JSON.stringify(packageLock, null, 2) + '\n'); } diff --git a/utils/prepare_packages.js b/utils/prepare_packages.js index 5e90c84a2c..a6072050ad 100644 --- a/utils/prepare_packages.js +++ b/utils/prepare_packages.js @@ -105,7 +105,7 @@ async function lintPackage(packageName) { currentPackageJSON.license = pwInternalJSON.license; for (const name of Object.keys(currentPackageJSON.dependencies || {})) { if (name in PACKAGES) - currentPackageJSON.dependencies[name] = `=${pwInternalJSON.version}`; + currentPackageJSON.dependencies[name] = pwInternalJSON.version; } await writeToPackage('package.json', JSON.stringify(currentPackageJSON, null, 2) + '\n');