Skip to content

Commit

Permalink
chore: fix playwright-core cli (#23203)
Browse files Browse the repository at this point in the history
Fixes #23206
  • Loading branch information
pavelfeldman committed May 22, 2023
1 parent c0bfbea commit 144f8b1
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
17 changes: 17 additions & 0 deletions 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');
3 changes: 3 additions & 0 deletions packages/playwright-core/package.json
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion packages/playwright-ct-core/cli.js
Expand Up @@ -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');
2 changes: 1 addition & 1 deletion packages/playwright-test/cli.js
Expand Up @@ -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');
1 change: 0 additions & 1 deletion packages/playwright-test/package.json
Expand Up @@ -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",
Expand Down

0 comments on commit 144f8b1

Please sign in to comment.