Skip to content

Commit

Permalink
chore: remove cli from playwright-core
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman committed Apr 25, 2023
1 parent a1007bb commit 5c95209
Show file tree
Hide file tree
Showing 16 changed files with 704 additions and 731 deletions.
3 changes: 0 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/playwright-chromium/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module.exports = require('playwright-core/cli');
module.exports = require('playwright-core/lib/cli/cli');
1 change: 0 additions & 1 deletion packages/playwright-chromium/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"require": "./index.js",
"default": "./index.js"
},
"./cli": "./cli.js",
"./package.json": "./package.json"
},
"bin": {
Expand Down
17 changes: 0 additions & 17 deletions packages/playwright-core/cli.js

This file was deleted.

8 changes: 3 additions & 5 deletions packages/playwright-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
"require": "./index.js",
"default": "./index.js"
},
"./cli": "./cli.js",
"./package.json": "./package.json",
"./lib/outofprocess": "./lib/outofprocess.js",
"./lib/image_tools/stats": "./lib/image_tools/stats.js",
"./lib/image_tools/compare": "./lib/image_tools/compare.js",
"./lib/image_tools/imageChannel": "./lib/image_tools/imageChannel.js",
"./lib/image_tools/colorUtils": "./lib/image_tools/colorUtils.js",
"./lib/cli/cli": "./lib/cli/cli.js",
"./lib/cli/program": "./lib/cli/program.js",
"./lib/containers/docker": "./lib/containers/docker.js",
"./lib/remote/playwrightServer": "./lib/remote/playwrightServer.js",
"./lib/server": "./lib/server/index.js",
Expand All @@ -34,8 +35,5 @@
"./types/protocol": "./types/protocol.d.ts",
"./types/structs": "./types/structs.d.ts"
},
"types": "types/types.d.ts",
"bin": {
"playwright": "./cli.js"
}
"types": "types/types.d.ts"
}
2 changes: 1 addition & 1 deletion packages/playwright-core/src/cli/DEPS.list
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
../utils
../utilsBundle.ts

[cli.ts]
[program.ts]
../server/trace/viewer/traceViewer.ts
../server/
../containers/
Expand Down
Loading

0 comments on commit 5c95209

Please sign in to comment.