puppeteer/packages/puppeteer-core/package.json

159 lines
3.8 KiB
JSON
Raw Normal View History

{
"name": "puppeteer-core",
"version": "19.7.4",
"description": "A high-level API to control headless Chrome over the DevTools Protocol",
"keywords": [
"puppeteer",
"chrome",
"headless",
"automation"
],
"type": "commonjs",
"main": "./lib/cjs/puppeteer/puppeteer-core.js",
"types": "./lib/types.d.ts",
"exports": {
".": {
"types": "./lib/types.d.ts",
"import": "./lib/esm/puppeteer/puppeteer-core.js",
"require": "./lib/cjs/puppeteer/puppeteer-core.js"
},
"./internal/*": {
"import": "./lib/esm/puppeteer/*",
"require": "./lib/cjs/puppeteer/*"
},
"./*": {
"import": "./*",
"require": "./*"
}
},
"repository": {
"type": "git",
"url": "https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core"
},
"engines": {
2023-03-06 10:33:38 +00:00
"node": ">=14.14.0"
},
"scripts": {
2023-02-13 18:22:43 +00:00
"build:docs": "wireit",
"build:tsc": "wireit",
"build:types": "wireit",
"build": "wireit",
"check": "tsx tools/ensure-correct-devtools-protocol-package",
2023-03-06 10:33:38 +00:00
"clean": "tsc -b --clean && rm -rf lib src/generated",
"generate:package-json": "wireit",
"generate:sources": "wireit",
2023-02-13 18:22:43 +00:00
"prepack": "wireit"
},
"wireit": {
"prepack": {
"command": "cp ../../README.md README.md",
"files": [
"../../README.md"
],
"output": [
"README.md"
]
},
"build": {
"dependencies": [
"build:tsc",
2023-02-13 18:22:43 +00:00
"build:types"
]
},
"generate:sources": {
"command": "tsx tools/generate_sources.ts",
2023-02-10 17:57:17 +00:00
"clean": "if-file-deleted",
"files": [
2023-02-10 17:57:17 +00:00
"../../versions.js",
"src/{injected,templates}/**",
2023-02-10 17:57:17 +00:00
"tools/generate_sources.ts"
],
"output": [
2023-02-10 17:57:17 +00:00
"src/generated/*.ts"
]
},
"generate:package-json": {
"command": "tsx ../../tools/generate_module_package_json.ts lib/esm/package.json",
2023-02-10 17:57:17 +00:00
"files": [
"../../tools/generate_module_package_json.ts"
],
"output": [
"lib/esm/package.json"
]
},
"build:docs": {
"command": "api-extractor run --local --config \"./api-extractor.docs.json\"",
2023-02-10 17:57:17 +00:00
"files": [
"api-extractor.docs.json",
2023-02-13 18:22:43 +00:00
"lib/esm/puppeteer/puppeteer-core.d.ts",
"tsconfig.json"
2023-02-10 17:57:17 +00:00
],
"dependencies": [
"build:tsc"
]
},
2023-02-13 18:22:43 +00:00
"build:tsc": {
"command": "tsc -b && rollup --config rollup.third_party.config.mjs",
"clean": "if-file-deleted",
"dependencies": [
2023-02-13 18:22:43 +00:00
"generate:package-json",
"generate:sources"
],
"files": [
2023-02-13 18:22:43 +00:00
"{compat,src,third_party}/**",
"rollup.third_party.config.mjs"
],
"output": [
2023-02-13 18:22:43 +00:00
"lib/{cjs,esm}/**",
"!lib/esm/package.json"
]
},
2023-02-13 18:22:43 +00:00
"build:types": {
"command": "api-extractor run --local && eslint --cache-location .eslintcache --cache --ext=ts --no-ignore --no-eslintrc -c=../../.eslintrc.types.cjs --fix lib/types.d.ts",
"files": [
2023-02-13 18:22:43 +00:00
"../../.eslintrc.types.cjs",
"api-extractor.json",
"lib/esm/puppeteer/types.d.ts",
"tsconfig.json"
],
"output": [
2023-02-13 18:22:43 +00:00
"lib/types.d.ts"
],
"dependencies": [
"build:tsc"
]
}
},
"files": [
"lib",
"!*.tsbuildinfo"
],
"author": "The Chromium Authors",
"license": "Apache-2.0",
"dependencies": {
"chromium-bidi": "0.4.4",
"cross-fetch": "3.1.5",
"debug": "4.3.4",
"devtools-protocol": "0.0.1094867",
"extract-zip": "2.0.1",
"https-proxy-agent": "5.0.1",
"proxy-from-env": "1.1.0",
"rimraf": "4.4.0",
"tar-fs": "2.1.1",
"unbzip2-stream": "1.4.3",
2023-03-06 12:43:37 +00:00
"ws": "8.12.1"
},
"peerDependencies": {
"typescript": ">= 4.7.4"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
},
"devDependencies": {
"mitt": "3.0.0",
"parsel-js": "github:jrandolf/parsel"
}
}