package.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "name": "@puppeteer/browsers",
  3. "version": "1.4.6",
  4. "description": "Download and launch browsers",
  5. "scripts": {
  6. "build:docs": "wireit",
  7. "build": "wireit",
  8. "build:test": "wireit",
  9. "clean": "tsc --build --clean && rm -rf lib",
  10. "test": "wireit"
  11. },
  12. "bin": "lib/cjs/main-cli.js",
  13. "main": "./lib/cjs/main.js",
  14. "module": "./lib/esm/main.js",
  15. "type": "commonjs",
  16. "exports": {
  17. ".": {
  18. "import": "./lib/esm/main.js",
  19. "require": "./lib/cjs/main.js"
  20. }
  21. },
  22. "wireit": {
  23. "build": {
  24. "command": "tsc -b && tsx ../../tools/chmod.ts 755 lib/cjs/main-cli.js lib/esm/main-cli.js",
  25. "files": [
  26. "src/**/*.ts",
  27. "tsconfig.json"
  28. ],
  29. "clean": "if-file-deleted",
  30. "output": [
  31. "lib/**",
  32. "!lib/esm/package.json"
  33. ],
  34. "dependencies": [
  35. "generate:package-json"
  36. ]
  37. },
  38. "generate:package-json": {
  39. "command": "tsx ../../tools/generate_module_package_json.ts lib/esm/package.json",
  40. "files": [
  41. "../../tools/generate_module_package_json.ts"
  42. ],
  43. "output": [
  44. "lib/esm/package.json"
  45. ]
  46. },
  47. "build:docs": {
  48. "command": "api-extractor run --local --config \"./api-extractor.docs.json\"",
  49. "files": [
  50. "api-extractor.docs.json",
  51. "lib/esm/main.d.ts",
  52. "tsconfig.json"
  53. ],
  54. "dependencies": [
  55. "build"
  56. ]
  57. },
  58. "build:test": {
  59. "command": "tsc -b test/src/tsconfig.json",
  60. "files": [
  61. "test/**/*.ts",
  62. "test/src/tsconfig.json"
  63. ],
  64. "output": [
  65. "test/build/**"
  66. ],
  67. "dependencies": [
  68. "build",
  69. "../testserver:build"
  70. ]
  71. },
  72. "test": {
  73. "command": "node tools/downloadTestBrowsers.mjs && cross-env DEBUG=puppeteer:* mocha",
  74. "files": [
  75. ".mocharc.cjs"
  76. ],
  77. "dependencies": [
  78. "build:test"
  79. ]
  80. }
  81. },
  82. "keywords": [
  83. "puppeteer",
  84. "browsers"
  85. ],
  86. "repository": {
  87. "type": "git",
  88. "url": "https://github.com/puppeteer/puppeteer/tree/main/packages/browsers"
  89. },
  90. "author": "The Chromium Authors",
  91. "license": "Apache-2.0",
  92. "engines": {
  93. "node": ">=16.3.0"
  94. },
  95. "files": [
  96. "lib",
  97. "src",
  98. "!*.tsbuildinfo"
  99. ],
  100. "dependencies": {
  101. "debug": "4.3.4",
  102. "extract-zip": "2.0.1",
  103. "progress": "2.0.3",
  104. "proxy-agent": "6.3.0",
  105. "tar-fs": "3.0.4",
  106. "unbzip2-stream": "1.4.3",
  107. "yargs": "17.7.1"
  108. },
  109. "devDependencies": {
  110. "@types/node": "^16.11.7",
  111. "@types/yargs": "17.0.22"
  112. },
  113. "peerDependencies": {
  114. "typescript": ">= 4.7.4"
  115. },
  116. "peerDependenciesMeta": {
  117. "typescript": {
  118. "optional": true
  119. }
  120. }
  121. }