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