a919d18ea7
The third_party folder is compiled with tsc and then rolled up in-place. This means that the next build might try to compile the file that has been rolled up leading to build errors. It seems the safest solution is to always rebuild third_party folder as the size is relatively small.
170 lines
4.0 KiB
JSON
170 lines
4.0 KiB
JSON
{
|
|
"name": "puppeteer-core",
|
|
"version": "19.5.2",
|
|
"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": {
|
|
"node": ">=14.1.0"
|
|
},
|
|
"scripts": {
|
|
"build:third_party": "wireit",
|
|
"build:tsc": "wireit",
|
|
"build:types": "wireit",
|
|
"build": "wireit",
|
|
"check": "tsx tools/ensure-correct-devtools-protocol-package",
|
|
"format:types": "wireit",
|
|
"generate:package-json": "wireit",
|
|
"generate:sources": "wireit",
|
|
"prepack": "wireit",
|
|
"clean": "tsc -b --clean && rimraf lib src/generated",
|
|
"clean:third_party": "wireit"
|
|
},
|
|
"wireit": {
|
|
"prepack": {
|
|
"command": "cp ../../README.md README.md",
|
|
"files": [
|
|
"../../README.md"
|
|
],
|
|
"output": [
|
|
"README.md"
|
|
]
|
|
},
|
|
"build": {
|
|
"dependencies": [
|
|
"build:third_party",
|
|
"format:types",
|
|
"generate:package-json"
|
|
]
|
|
},
|
|
"generate:sources": {
|
|
"command": "tsx tools/generate_sources.ts",
|
|
"files": [
|
|
"tools/generate_sources.ts",
|
|
"src/templates/**"
|
|
],
|
|
"output": [
|
|
"src/generated/**"
|
|
]
|
|
},
|
|
"clean:third_party": {
|
|
"command": "rimraf lib/esm/third_party lib/cjs/third_party"
|
|
},
|
|
"build:third_party": {
|
|
"command": "rollup --config rollup.third_party.config.js",
|
|
"dependencies": [
|
|
"build:tsc"
|
|
],
|
|
"clean": false,
|
|
"files": [
|
|
"lib/esm/third_party/**",
|
|
"lib/cjs/third_party/**"
|
|
],
|
|
"output": [
|
|
"lib/esm/third_party/**",
|
|
"lib/cjs/third_party/**"
|
|
]
|
|
},
|
|
"generate:package-json": {
|
|
"command": "tsx ../../tools/generate_module_package_json.ts lib/esm/package.json",
|
|
"clean": "if-file-deleted",
|
|
"dependencies": [
|
|
"build:tsc"
|
|
],
|
|
"output": [
|
|
"lib/esm/package.json"
|
|
]
|
|
},
|
|
"build:types": {
|
|
"command": "api-extractor run --local",
|
|
"dependencies": [
|
|
"build:tsc"
|
|
],
|
|
"files": [
|
|
"tsconfig.json",
|
|
"api-extractor.json",
|
|
"lib/esm/puppeteer/types.d.ts"
|
|
],
|
|
"output": [
|
|
"lib/types.d.ts"
|
|
]
|
|
},
|
|
"format:types": {
|
|
"command": "eslint --cache-location .eslintcache --cache --ext=ts --no-ignore --no-eslintrc -c=../../.eslintrc.types.cjs --fix lib/types.d.ts",
|
|
"dependencies": [
|
|
"build:types"
|
|
],
|
|
"clean": false,
|
|
"files": [
|
|
"lib/types.d.ts",
|
|
"../../.eslintrc.types.cjs"
|
|
],
|
|
"output": [
|
|
"lib/types.d.ts"
|
|
]
|
|
},
|
|
"build:tsc": {
|
|
"command": "tsc -b",
|
|
"clean": "if-file-deleted",
|
|
"dependencies": [
|
|
"clean:third_party",
|
|
"generate:sources"
|
|
],
|
|
"files": [
|
|
"src/**",
|
|
"compat/**",
|
|
"third_party/**",
|
|
"**/tsconfig.*.json"
|
|
],
|
|
"output": [
|
|
"lib/esm/**",
|
|
"lib/cjs/**"
|
|
]
|
|
}
|
|
},
|
|
"files": [
|
|
"lib",
|
|
"!*.tsbuildinfo"
|
|
],
|
|
"author": "The Chromium Authors",
|
|
"license": "Apache-2.0",
|
|
"dependencies": {
|
|
"cross-fetch": "3.1.5",
|
|
"debug": "4.3.4",
|
|
"devtools-protocol": "0.0.1082910",
|
|
"extract-zip": "2.0.1",
|
|
"https-proxy-agent": "5.0.1",
|
|
"proxy-from-env": "1.1.0",
|
|
"rimraf": "3.0.2",
|
|
"tar-fs": "2.1.1",
|
|
"unbzip2-stream": "1.4.3",
|
|
"ws": "8.11.0"
|
|
}
|
|
}
|