Fixes https://github.com/microsoft/playwright/issues/23206
This commit is contained in:
Pavel Feldman 2023-05-22 12:37:08 -07:00 коммит произвёл GitHub
Родитель c0bfbea395
Коммит 144f8b1495
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 22 добавлений и 3 удалений

17
packages/playwright-core/cli.js Executable file
Просмотреть файл

@ -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",