package.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {
  2. "name": "web-streams-polyfill",
  3. "version": "4.0.0-beta.3",
  4. "description": "Web Streams, based on the WHATWG spec reference implementation",
  5. "main": "dist/ponyfill.js",
  6. "module": "dist/ponyfill.mjs",
  7. "types": "types/ponyfill.d.ts",
  8. "exports": {
  9. ".": {
  10. "types": "./types/ponyfill.d.ts",
  11. "import": "./dist/ponyfill.mjs",
  12. "require": "./dist/ponyfill.js"
  13. },
  14. "./es5": {
  15. "types": "./types/ponyfill.d.ts",
  16. "import": "./dist/ponyfill.es5.mjs",
  17. "require": "./dist/ponyfill.es5.js"
  18. },
  19. "./polyfill": {
  20. "types": "./types/polyfill.d.ts",
  21. "default": "./dist/polyfill.js"
  22. },
  23. "./polyfill/es5": {
  24. "types": "./types/polyfill.d.ts",
  25. "default": "./dist/polyfill.es5.js"
  26. },
  27. "./dist/*": "./dist/*",
  28. "./types/*": "./types/*",
  29. "./package": "./package.json",
  30. "./package.json": "./package.json"
  31. },
  32. "scripts": {
  33. "test": "npm run test:types && npm run test:unit && npm run test:wpt && npm run test:bundler",
  34. "test:wpt": "npm run test:wpt:node && npm run test:wpt:chromium && npm run test:wpt:firefox",
  35. "test:wpt:node": "node --expose_gc ./test/wpt/node/run.js",
  36. "test:wpt:chromium": "node ./test/wpt/browser/run.js --browser chromium",
  37. "test:wpt:firefox": "node ./test/wpt/browser/run.js --browser firefox",
  38. "test:bundler": "npm run test:bundler:rollup && npm run test:bundler:webpack",
  39. "test:bundler:rollup": "cd test/rollup && npm ci && npm test",
  40. "test:bundler:webpack": "cd test/webpack && npm ci && npm test",
  41. "test:types": "tsc -p ./test/types/tsconfig.json",
  42. "test:unit": "node --experimental-import-meta-resolve ./node_modules/jasmine/bin/jasmine.js --config=test/unit/jasmine.json",
  43. "lint": "eslint \"src/**/*.ts\"",
  44. "build": "npm run build:bundle && npm run build:types",
  45. "build:bundle": "rollup -c",
  46. "build:types": "tsc --project . --emitDeclarationOnly --declarationDir ./lib && api-extractor run",
  47. "accept:types": "tsc --project . --emitDeclarationOnly --declarationDir ./lib && api-extractor run --local",
  48. "prepare": "npm run build"
  49. },
  50. "files": [
  51. "dist",
  52. "es5",
  53. "polyfill",
  54. "types"
  55. ],
  56. "engines": {
  57. "node": ">= 14"
  58. },
  59. "repository": {
  60. "type": "git",
  61. "url": "git+https://github.com/MattiasBuelens/web-streams-polyfill.git"
  62. },
  63. "keywords": [
  64. "streams",
  65. "whatwg",
  66. "polyfill"
  67. ],
  68. "author": "Mattias Buelens <mattias@buelens.com>",
  69. "contributors": [
  70. "Diwank Singh <diwank.singh@gmail.com>"
  71. ],
  72. "license": "MIT",
  73. "bugs": {
  74. "url": "https://github.com/MattiasBuelens/web-streams-polyfill/issues"
  75. },
  76. "homepage": "https://github.com/MattiasBuelens/web-streams-polyfill#readme",
  77. "devDependencies": {
  78. "@microsoft/api-extractor": "^7.21.2",
  79. "@rollup/plugin-inject": "^4.0.4",
  80. "@rollup/plugin-replace": "^4.0.0",
  81. "@rollup/plugin-strip": "^2.1.0",
  82. "@rollup/plugin-typescript": "^8.3.1",
  83. "@types/jasmine": "^4.0.2",
  84. "@types/node": "^14.18.12",
  85. "@typescript-eslint/eslint-plugin": "^5.19.0",
  86. "@typescript-eslint/parser": "^5.19.0",
  87. "@ungap/promise-all-settled": "^1.1.2",
  88. "abort-controller": "^3.0.0",
  89. "eslint": "^8.13.0",
  90. "jasmine": "^4.0.2",
  91. "micromatch": "^4.0.5",
  92. "minimist": "^1.2.6",
  93. "playwright": "^1.20.2",
  94. "recursive-readdir": "^2.2.2",
  95. "rollup": "^2.70.1",
  96. "rollup-plugin-terser": "^7.0.2",
  97. "tslib": "^2.3.1",
  98. "typescript": "^4.7.0-beta",
  99. "wpt-runner": "^4.1.0"
  100. }
  101. }