package.json 2.5 KB

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