From 385dbfbb20a4f4c2c38e0cc4bdca3be74b4392df Mon Sep 17 00:00:00 2001 From: Andrea Arturo Venti Fuentes <117413846+av1155@users.noreply.github.com> Date: Mon, 4 May 2026 02:00:09 -0400 Subject: [PATCH] fix(deps): declare playwright-core as direct dependency playwright-cli.js requires `playwright-core/lib/tools/cli-client/program` but only `playwright` is declared as a dependency. Under package managers that isolate transitives (pnpm with the default `isolated` linker), the require fails immediately on every install. Pinning `playwright-core` to the same version as `playwright` removes the dependency on hoisting and matches the existing transitive resolution. Fixes https://github.com/microsoft/playwright-cli/issues/396 --- package-lock.json | 3 ++- package.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6eb9858..6e76160 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,8 @@ "version": "0.1.11", "license": "Apache-2.0", "dependencies": { - "playwright": "1.60.0-alpha-1777669338000" + "playwright": "1.60.0-alpha-1777669338000", + "playwright-core": "1.60.0-alpha-1777669338000" }, "bin": { "playwright-cli": "playwright-cli.js" diff --git a/package.json b/package.json index b214ee2..290fa18 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "@types/node": "^25.2.1" }, "dependencies": { - "playwright": "1.60.0-alpha-1777669338000" + "playwright": "1.60.0-alpha-1777669338000", + "playwright-core": "1.60.0-alpha-1777669338000" }, "bin": { "playwright-cli": "playwright-cli.js"