1 | {
|
2 | "name": "puppeteer",
|
3 | "version": "22.9.0",
|
4 | "description": "A high-level API to control headless Chrome over the DevTools Protocol",
|
5 | "keywords": [
|
6 | "puppeteer",
|
7 | "chrome",
|
8 | "headless",
|
9 | "automation"
|
10 | ],
|
11 | "type": "commonjs",
|
12 | "bin": "./lib/esm/puppeteer/node/cli.js",
|
13 | "main": "./lib/cjs/puppeteer/puppeteer.js",
|
14 | "types": "./lib/types.d.ts",
|
15 | "exports": {
|
16 | ".": {
|
17 | "types": "./lib/types.d.ts",
|
18 | "import": "./lib/esm/puppeteer/puppeteer.js",
|
19 | "require": "./lib/cjs/puppeteer/puppeteer.js"
|
20 | },
|
21 | "./internal/*": {
|
22 | "import": "./lib/esm/puppeteer/*",
|
23 | "require": "./lib/cjs/puppeteer/*"
|
24 | },
|
25 | "./*": {
|
26 | "import": "./*",
|
27 | "require": "./*"
|
28 | }
|
29 | },
|
30 | "repository": {
|
31 | "type": "git",
|
32 | "url": "https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer"
|
33 | },
|
34 | "engines": {
|
35 | "node": ">=18"
|
36 | },
|
37 | "scripts": {
|
38 | "build:docs": "wireit",
|
39 | "build": "wireit",
|
40 | "clean": "../../tools/clean.mjs",
|
41 | "postinstall": "node install.mjs",
|
42 | "prepack": "wireit"
|
43 | },
|
44 | "wireit": {
|
45 | "prepack": {
|
46 | "command": "tsx ../../tools/cp.ts ../../README.md README.md",
|
47 | "files": [
|
48 | "../../README.md"
|
49 | ],
|
50 | "output": [
|
51 | "README.md"
|
52 | ]
|
53 | },
|
54 | "build": {
|
55 | "dependencies": [
|
56 | "build:tsc",
|
57 | "build:types"
|
58 | ]
|
59 | },
|
60 | "generate:package-json": {
|
61 | "command": "tsx ../../tools/generate_module_package_json.ts lib/esm/package.json",
|
62 | "files": [
|
63 | "../../tools/generate_module_package_json.ts"
|
64 | ],
|
65 | "output": [
|
66 | "lib/esm/package.json"
|
67 | ]
|
68 | },
|
69 | "build:docs": {
|
70 | "command": "api-extractor run --local --config \"./api-extractor.docs.json\"",
|
71 | "files": [
|
72 | "api-extractor.docs.json",
|
73 | "lib/esm/puppeteer/puppeteer-core.d.ts",
|
74 | "tsconfig.json"
|
75 | ],
|
76 | "dependencies": [
|
77 | "build:tsc"
|
78 | ]
|
79 | },
|
80 | "build:tsc": {
|
81 | "command": "tsc -b && tsx ../../tools/chmod.ts 755 lib/cjs/puppeteer/node/cli.js lib/esm/puppeteer/node/cli.js",
|
82 | "clean": "if-file-deleted",
|
83 | "dependencies": [
|
84 | "../puppeteer-core:build",
|
85 | "../browsers:build",
|
86 | "generate:package-json"
|
87 | ],
|
88 | "files": [
|
89 | "src/**"
|
90 | ],
|
91 | "output": [
|
92 | "lib/{cjs,esm}/**",
|
93 | "!lib/esm/package.json"
|
94 | ]
|
95 | },
|
96 | "build:types": {
|
97 | "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",
|
98 | "files": [
|
99 | "../../.eslintrc.types.cjs",
|
100 | "api-extractor.json",
|
101 | "lib/esm/puppeteer/types.d.ts",
|
102 | "tsconfig.json"
|
103 | ],
|
104 | "output": [
|
105 | "lib/types.d.ts"
|
106 | ],
|
107 | "dependencies": [
|
108 | "build:tsc"
|
109 | ]
|
110 | }
|
111 | },
|
112 | "files": [
|
113 | "lib",
|
114 | "src",
|
115 | "install.mjs",
|
116 | "!*.test.ts",
|
117 | "!*.test.js",
|
118 | "!*.test.d.ts",
|
119 | "!*.test.js.map",
|
120 | "!*.test.d.ts.map",
|
121 | "!*.tsbuildinfo"
|
122 | ],
|
123 | "author": "The Chromium Authors",
|
124 | "license": "Apache-2.0",
|
125 | "dependencies": {
|
126 | "cosmiconfig": "9.0.0",
|
127 | "puppeteer-core": "22.9.0",
|
128 | "@puppeteer/browsers": "2.2.3",
|
129 | "devtools-protocol": "0.0.1286932"
|
130 | },
|
131 | "devDependencies": {
|
132 | "@types/node": "18.17.15"
|
133 | }
|
134 | }
|