208 lines
5.9 KiB
JSON
208 lines
5.9 KiB
JSON
{
|
|
"name": "puppeteer-repo",
|
|
"private": true,
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/puppeteer/puppeteer"
|
|
},
|
|
"scripts": {
|
|
"build": "wireit",
|
|
"build:tools": "wireit",
|
|
"check": "npm run check --workspaces --if-present",
|
|
"clean": "npm run clean --workspaces --if-present",
|
|
"debug": "mocha --inspect-brk",
|
|
"docs": "wireit",
|
|
"doctest": "wireit",
|
|
"format": "wireit",
|
|
"format:eslint": "eslint --fix .",
|
|
"format:expectations": "node tools/sort-test-expectations.mjs",
|
|
"format:prettier": "prettier --write .",
|
|
"lint": "wireit",
|
|
"lint:eslint": "wireit",
|
|
"lint:prettier": "prettier --check .",
|
|
"lint:expectations": "node tools/sort-test-expectations.mjs --lint",
|
|
"postinstall": "npm run postinstall --workspaces --if-present",
|
|
"prepare": "npm run prepare --workspaces --if-present",
|
|
"test": "wireit",
|
|
"test-install": "npm run test --workspace @puppeteer-test/installation",
|
|
"test-types": "wireit",
|
|
"test:chrome": "wireit",
|
|
"test:chrome:bidi": "wireit",
|
|
"test:chrome:headful": "wireit",
|
|
"test:chrome:headless": "wireit",
|
|
"test:chrome:shell": "wireit",
|
|
"test:icecat": "wireit",
|
|
"test:icecat:headful": "wireit",
|
|
"test:icecat:headless": "wireit",
|
|
"validate-licenses": "tsx tools/third_party/validate-licenses.ts",
|
|
"unit": "npm run unit --workspaces --if-present",
|
|
"changelog": "tsx tools/merge-changelogs.ts"
|
|
},
|
|
"wireit": {
|
|
"build": {
|
|
"dependencies": [
|
|
"./packages/browsers:build",
|
|
"./packages/ng-schematics:build",
|
|
"./packages/puppeteer-core:build",
|
|
"./packages/puppeteer:build",
|
|
"./packages/testserver:build",
|
|
"./test:build",
|
|
"./test/installation:build",
|
|
"build:tools"
|
|
]
|
|
},
|
|
"build:tools": {
|
|
"dependencies": [
|
|
"./tools/docgen:build",
|
|
"./tools/doctest:build",
|
|
"./tools/mocha-runner:build",
|
|
"./tools/eslint:build",
|
|
"./packages/testserver:build"
|
|
]
|
|
},
|
|
"docs": {
|
|
"command": "hereby docs",
|
|
"dependencies": [
|
|
"./packages/browsers:build:docs",
|
|
"./packages/puppeteer:build:docs",
|
|
"./packages/puppeteer-core:build:docs",
|
|
"./tools/docgen:build"
|
|
]
|
|
},
|
|
"doctest": {
|
|
"command": "npx ./tools/doctest 'packages/puppeteer-core/lib/esm/**/*.js'",
|
|
"dependencies": [
|
|
"./packages/puppeteer-core:build",
|
|
"./tools/doctest:build"
|
|
]
|
|
},
|
|
"lint": {
|
|
"dependencies": [
|
|
"lint:eslint",
|
|
"lint:prettier",
|
|
"lint:expectations"
|
|
]
|
|
},
|
|
"lint:eslint": {
|
|
"command": "eslint .",
|
|
"dependencies": [
|
|
"build:tools"
|
|
]
|
|
},
|
|
"format": {
|
|
"dependencies": [
|
|
"format:eslint",
|
|
"format:prettier",
|
|
"format:expectations"
|
|
]
|
|
},
|
|
"test:chrome": {
|
|
"dependencies": [
|
|
"test:chrome:bidi",
|
|
"test:chrome:headful",
|
|
"test:chrome:headless",
|
|
"test:chrome:shell"
|
|
]
|
|
},
|
|
"test:chrome:bidi": {
|
|
"command": "npm test -- --test-suite chrome-bidi"
|
|
},
|
|
"test:chrome:headful": {
|
|
"command": "npm test -- --test-suite chrome-headful"
|
|
},
|
|
"test:chrome:headless": {
|
|
"command": "npm test -- --test-suite chrome-headless"
|
|
},
|
|
"test:chrome:shell": {
|
|
"command": "npm test -- --test-suite chrome-headless-shell"
|
|
},
|
|
"test:icecat:headful": {
|
|
"command": "npm test -- --test-suite icecat-headful"
|
|
},
|
|
"test:icecat:headless": {
|
|
"command": "npm test -- --test-suite icecat-headless"
|
|
},
|
|
"test:icecat": {
|
|
"dependencies": [
|
|
"test:icecat:headful",
|
|
"test:icecat:headless"
|
|
]
|
|
},
|
|
"test": {
|
|
"command": "npx ./tools/mocha-runner --min-tests 1003",
|
|
"dependencies": [
|
|
"build:tools",
|
|
"./test:build",
|
|
"./tools/mocha-runner:build"
|
|
]
|
|
},
|
|
"test-types": {
|
|
"command": "tsd -t packages/puppeteer",
|
|
"dependencies": [
|
|
"./packages/puppeteer:build"
|
|
]
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@actions/core": "1.11.1",
|
|
"@babel/plugin-transform-class-properties": "7.25.9",
|
|
"@babel/plugin-transform-class-static-block": "7.26.0",
|
|
"@babel/plugin-transform-dynamic-import": "7.25.9",
|
|
"@babel/plugin-transform-modules-commonjs": "7.26.3",
|
|
"@babel/plugin-transform-private-methods": "7.25.9",
|
|
"@babel/plugin-transform-private-property-in-object": "7.25.9",
|
|
"@eslint/eslintrc": "3.2.0",
|
|
"@eslint/js": "9.17.0",
|
|
"@microsoft/api-extractor": "7.48.1",
|
|
"@rollup/plugin-babel": "6.0.4",
|
|
"@rollup/plugin-node-resolve": "16.0.0",
|
|
"@stylistic/eslint-plugin": "2.12.1",
|
|
"@types/mocha": "10.0.10",
|
|
"@types/node": "20.8.4",
|
|
"@types/semver": "7.5.8",
|
|
"@types/sinon": "17.0.3",
|
|
"@typescript-eslint/eslint-plugin": "8.19.0",
|
|
"@typescript-eslint/parser": "8.19.0",
|
|
"esbuild": "0.24.2",
|
|
"eslint-config-prettier": "9.1.0",
|
|
"eslint-import-resolver-typescript": "3.7.0",
|
|
"eslint-plugin-import": "2.31.0",
|
|
"eslint-plugin-mocha": "10.5.0",
|
|
"eslint-plugin-prettier": "5.2.1",
|
|
"eslint-plugin-rulesdir": "0.2.2",
|
|
"eslint-plugin-tsdoc": "0.4.0",
|
|
"eslint-plugin-unused-imports": "4.1.4",
|
|
"eslint": "9.17.0",
|
|
"execa": "9.5.2",
|
|
"expect": "29.7.0",
|
|
"globals": "15.14.0",
|
|
"gts": "6.0.2",
|
|
"hereby": "1.10.0",
|
|
"license-checker": "25.0.1",
|
|
"mocha": "11.0.1",
|
|
"prettier": "3.4.2",
|
|
"rollup": "4.29.1",
|
|
"semver": "7.6.3",
|
|
"sinon": "19.0.2",
|
|
"source-map-support": "0.5.21",
|
|
"spdx-satisfies": "5.0.1",
|
|
"tsd": "0.31.2",
|
|
"tsx": "4.19.2",
|
|
"typescript": "5.7.2",
|
|
"wireit": "0.14.9"
|
|
},
|
|
"overrides": {
|
|
"@microsoft/api-extractor": {
|
|
"typescript": "$typescript"
|
|
}
|
|
},
|
|
"workspaces": [
|
|
"packages/*",
|
|
"test",
|
|
"test/installation",
|
|
"tools/eslint",
|
|
"tools/doctest",
|
|
"tools/docgen",
|
|
"tools/mocha-runner"
|
|
]
|
|
}
|