package.json 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. "name": "web-streams-polyfill",
  3. "version": "3.2.1",
  4. "description": "Web Streams, based on the WHATWG spec reference implementation",
  5. "main": "dist/polyfill",
  6. "browser": "dist/polyfill.min.js",
  7. "module": "dist/polyfill.mjs",
  8. "types": "dist/types/polyfill.d.ts",
  9. "typesVersions": {
  10. ">=3.6": {
  11. "dist/types/*": [
  12. "dist/types/ts3.6/*"
  13. ]
  14. }
  15. },
  16. "scripts": {
  17. "test": "npm run test:types && npm run test:unit && npm run test:wpt",
  18. "test:wpt": "node --expose_gc ./test/run-web-platform-tests.js",
  19. "pretest:wpt": "git submodule update --init --recursive",
  20. "test:types": "tsc -p ./test/types/tsconfig.json",
  21. "test:unit": "jasmine --config=test/unit/jasmine.json",
  22. "lint": "eslint \"src/**/*.ts\"",
  23. "build": "npm run build:bundle && npm run build:types",
  24. "build:bundle": "rollup -c",
  25. "build:types": "tsc --project . --emitDeclarationOnly --declarationDir ./lib && api-extractor run && node ./build/downlevel-dts.js",
  26. "accept:types": "tsc --project . --emitDeclarationOnly --declarationDir ./lib && api-extractor run --local && node ./build/downlevel-dts.js",
  27. "prepare": "npm run build"
  28. },
  29. "files": [
  30. "dist",
  31. "es6",
  32. "es2018",
  33. "ponyfill"
  34. ],
  35. "engines": {
  36. "node": ">= 8"
  37. },
  38. "repository": {
  39. "type": "git",
  40. "url": "git+https://github.com/MattiasBuelens/web-streams-polyfill.git"
  41. },
  42. "keywords": [
  43. "streams",
  44. "whatwg",
  45. "polyfill"
  46. ],
  47. "author": "Mattias Buelens <mattias@buelens.com>",
  48. "contributors": [
  49. "Diwank Singh <diwank.singh@gmail.com>"
  50. ],
  51. "license": "MIT",
  52. "bugs": {
  53. "url": "https://github.com/MattiasBuelens/web-streams-polyfill/issues"
  54. },
  55. "homepage": "https://github.com/MattiasBuelens/web-streams-polyfill#readme",
  56. "devDependencies": {
  57. "@microsoft/api-extractor": "^7.13.4",
  58. "@rollup/plugin-inject": "^4.0.2",
  59. "@rollup/plugin-replace": "^2.4.2",
  60. "@rollup/plugin-strip": "^2.0.0",
  61. "@rollup/plugin-typescript": "^8.2.1",
  62. "@types/node": "^14.14.37",
  63. "@typescript-eslint/eslint-plugin": "^4.21.0",
  64. "@typescript-eslint/parser": "^4.21.0",
  65. "@ungap/promise-all-settled": "^1.1.2",
  66. "eslint": "^7.23.0",
  67. "jasmine": "^3.7.0",
  68. "micromatch": "^4.0.2",
  69. "rollup": "^2.44.0",
  70. "rollup-plugin-terser": "^7.0.2",
  71. "ts-morph": "^10.0.2",
  72. "tslib": "^2.2.0",
  73. "typescript": "^4.2.4",
  74. "wpt-runner": "^3.2.1"
  75. }
  76. }