Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: fix playwright-core cli (#23203)
Pavel Feldman144f8b149519
diff --git a/packages/playwright-core/cli.js b/packages/playwright-core/cli.jsnew file mode 100755index 0000000000..bd995de114--- /dev/null+++ b/packages/playwright-core/cli.js@@ -0,0 +1,17 @@+#!/usr/bin/env node+/**+ * Copyright (c) Microsoft Corporation.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */+module.exports = require('playwright-core/lib/cli/cli');diff --git a/packages/playwright-core/package.json b/packages/playwright-core/package.jsonindex f69d5be565..bc47c98c11 100644--- a/packages/playwright-core/package.json+++ b/packages/playwright-core/package.json@@ -35,5 +35,8 @@"./types/protocol": "./types/protocol.d.ts","./types/structs": "./types/structs.d.ts"},+ "bin": {+ "playwright": "./cli.js"+ },"types": "types/types.d.ts"}diff --git a/packages/playwright-ct-core/cli.js b/packages/playwright-ct-core/cli.jsindex 6b702d0014..bff00995d9 100755--- a/packages/playwright-ct-core/cli.js+++ b/packages/playwright-ct-core/cli.js@@ -14,4 +14,4 @@* See the License for the specific language governing permissions and* limitations under the License.*/-module.exports = require('@playwright/test/cli');+module.exports = require('@playwright/test/lib/cli');diff --git a/packages/playwright-test/cli.js b/packages/playwright-test/cli.jsindex d4eb087af8..bff00995d9 100755--- a/packages/playwright-test/cli.js+++ b/packages/playwright-test/cli.js@@ -14,4 +14,4 @@* See the License for the specific language governing permissions and* limitations under the License.*/-module.exports = require('./lib/cli');+module.exports = require('@playwright/test/lib/cli');diff --git a/packages/playwright-test/package.json b/packages/playwright-test/package.jsonindex 2830994dd4..e0f32eb3c3 100644--- a/packages/playwright-test/package.json+++ b/packages/playwright-test/package.json@@ -15,7 +15,6 @@"require": "./index.js","default": "./index.js"},- "./cli": "./cli.js","./package.json": "./package.json","./lib/cli": "./lib/cli.js","./lib/common/babelBundle": "./lib/common/babelBundle.js",