chore: fix playwright-core cli (#23203)
Fixes https://github.com/microsoft/playwright/issues/23206
This commit is contained in:
Родитель
c0bfbea395
Коммит
144f8b1495
|
@ -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');
|
|
@ -35,5 +35,8 @@
|
||||||
"./types/protocol": "./types/protocol.d.ts",
|
"./types/protocol": "./types/protocol.d.ts",
|
||||||
"./types/structs": "./types/structs.d.ts"
|
"./types/structs": "./types/structs.d.ts"
|
||||||
},
|
},
|
||||||
|
"bin": {
|
||||||
|
"playwright": "./cli.js"
|
||||||
|
},
|
||||||
"types": "types/types.d.ts"
|
"types": "types/types.d.ts"
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,4 +14,4 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
module.exports = require('@playwright/test/cli');
|
module.exports = require('@playwright/test/lib/cli');
|
||||||
|
|
|
@ -14,4 +14,4 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
module.exports = require('./lib/cli');
|
module.exports = require('@playwright/test/lib/cli');
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
"require": "./index.js",
|
"require": "./index.js",
|
||||||
"default": "./index.js"
|
"default": "./index.js"
|
||||||
},
|
},
|
||||||
"./cli": "./cli.js",
|
|
||||||
"./package.json": "./package.json",
|
"./package.json": "./package.json",
|
||||||
"./lib/cli": "./lib/cli.js",
|
"./lib/cli": "./lib/cli.js",
|
||||||
"./lib/common/babelBundle": "./lib/common/babelBundle.js",
|
"./lib/common/babelBundle": "./lib/common/babelBundle.js",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче