123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- {
- "name": "puppeteer-core",
- "version": "20.9.0",
- "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": ">=16.3.0"
- },
- "scripts": {
- "build:docs": "wireit",
- "build:tsc": "wireit",
- "build:types": "wireit",
- "build": "wireit",
- "check": "tsx tools/ensure-correct-devtools-protocol-package",
- "clean": "tsc -b --clean && rm -rf lib src/generated",
- "generate:package-json": "wireit",
- "generate:sources": "wireit",
- "prepack": "wireit",
- "unit": "wireit"
- },
- "wireit": {
- "prepack": {
- "command": "tsx ../../tools/cp.ts ../../README.md README.md",
- "files": [
- "../../README.md"
- ],
- "output": [
- "README.md"
- ]
- },
- "build": {
- "dependencies": [
- "build:tsc",
- "build:types"
- ]
- },
- "generate:sources": {
- "command": "tsx tools/generate_sources.ts",
- "clean": "if-file-deleted",
- "files": [
- "../../versions.js",
- "src/{injected,templates}/**",
- "tools/generate_sources.ts"
- ],
- "output": [
- "src/generated/*.ts"
- ]
- },
- "generate:package-json": {
- "command": "tsx ../../tools/generate_module_package_json.ts lib/esm/package.json",
- "files": [
- "../../tools/generate_module_package_json.ts"
- ],
- "output": [
- "lib/esm/package.json"
- ]
- },
- "build:docs": {
- "command": "api-extractor run --local --config \"./api-extractor.docs.json\"",
- "files": [
- "api-extractor.docs.json",
- "lib/esm/puppeteer/puppeteer-core.d.ts",
- "tsconfig.json"
- ],
- "dependencies": [
- "build:tsc"
- ]
- },
- "build:tsc": {
- "command": "tsc -b && rollup --config rollup.third_party.config.mjs",
- "clean": "if-file-deleted",
- "dependencies": [
- "generate:package-json",
- "generate:sources",
- "../browsers:build"
- ],
- "files": [
- "{compat,src,third_party}/**",
- "rollup.third_party.config.mjs"
- ],
- "output": [
- "lib/{cjs,esm}/**",
- "!lib/esm/package.json"
- ]
- },
- "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": [
- "../../.eslintrc.types.cjs",
- "api-extractor.json",
- "lib/esm/puppeteer/types.d.ts",
- "tsconfig.json"
- ],
- "output": [
- "lib/types.d.ts"
- ],
- "dependencies": [
- "build:tsc"
- ]
- },
- "unit": {
- "command": "node --test --test-reporter spec lib/cjs",
- "dependencies": [
- "build"
- ]
- }
- },
- "files": [
- "lib",
- "src",
- "!*.test.js",
- "!*.test.d.ts",
- "!*.test.js.map",
- "!*.test.d.ts.map",
- "!*.tsbuildinfo"
- ],
- "author": "The Chromium Authors",
- "license": "Apache-2.0",
- "dependencies": {
- "chromium-bidi": "0.4.16",
- "cross-fetch": "4.0.0",
- "debug": "4.3.4",
- "devtools-protocol": "0.0.1147663",
- "ws": "8.13.0",
- "@puppeteer/browsers": "1.4.6"
- },
- "peerDependencies": {
- "typescript": ">= 4.7.4"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- }
- },
- "devDependencies": {
- "mitt": "3.0.0",
- "parsel-js": "1.1.0"
- }
- }
|