package.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "name": "@sec-ant/readable-stream",
  3. "description": "A tiny, zero-dependency yet spec-compliant asynchronous iterator polyfill/ponyfill for ReadableStreams.",
  4. "private": false,
  5. "version": "0.4.1",
  6. "type": "module",
  7. "files": ["./dist"],
  8. "main": "./dist/index/index.js",
  9. "module": "./dist/index/index.js",
  10. "exports": {
  11. ".": "./dist/index/index.js",
  12. "./asyncIterator": "./dist/index/asyncIterator.js",
  13. "./fromAnyIterable": "./dist/index/fromAnyIterable.js",
  14. "./ponyfill": "./dist/ponyfill/index.js",
  15. "./ponyfill/asyncIterator": "./dist/ponyfill/asyncIterator.js",
  16. "./ponyfill/fromAnyIterable": "./dist/ponyfill/fromAnyIterable.js",
  17. "./polyfill": "./dist/polyfill/index.js",
  18. "./polyfill/asyncIterator": "./dist/polyfill/asyncIterator.js",
  19. "./polyfill/fromAnyIterable": "./dist/polyfill/fromAnyIterable.js",
  20. "./async-iterator": {
  21. "types": "./dist/types/async-iterator.d.ts"
  22. }
  23. },
  24. "repository": {
  25. "type": "git",
  26. "url": "git+https://github.com/Sec-ant/readable-stream.git"
  27. },
  28. "homepage": "https://github.com/Sec-ant/readable-stream",
  29. "bugs": {
  30. "url": "https://github.com/Sec-ant/readable-stream/issues",
  31. "email": "zezhengwu@proton.me"
  32. },
  33. "keywords": [
  34. "stream",
  35. "web-streams",
  36. "readablestream",
  37. "async",
  38. "asynchronous",
  39. "iterator",
  40. "iteration",
  41. "async-iterator",
  42. "polyfill",
  43. "esm",
  44. "from-iterable"
  45. ],
  46. "author": {
  47. "name": "Ze-Zheng Wu"
  48. },
  49. "license": "MIT",
  50. "publishConfig": {
  51. "access": "public"
  52. },
  53. "scripts": {
  54. "install:ci": "npm ci && npx playwright install --with-deps",
  55. "install:codesandbox": "npm ci && ./scripts/prepare.sh",
  56. "update-hooks": "simple-git-hooks",
  57. "changeset": "changeset",
  58. "bump": "changeset version 2>/dev/null | grep . && npm i; exit 0",
  59. "type-check": "tsc --noEmit --emitDeclarationOnly false",
  60. "format:prettier": "prettier . --write",
  61. "format:biome": "biome format . --write",
  62. "format": "conc \"npm:format:prettier\" \"npm:format:biome\"",
  63. "check:biome": "biome check --apply .",
  64. "check": "conc \"npm:format:prettier\" \"npm:check:biome\"",
  65. "prebuild": "npm run check && npm run type-check",
  66. "build": "vite build",
  67. "copy": "copy-files-from-to",
  68. "postbuild": "tsc && npm run copy",
  69. "test:chromium": "vitest run --browser.name=chromium",
  70. "test:firefox": "vitest run --browser.name=firefox",
  71. "test": "npm run test:chromium && npm run test:firefox",
  72. "test:coverage": "vitest run --coverage",
  73. "test:ui": "vitest --ui --coverage",
  74. "prepublishOnly": "npm run build",
  75. "bump-biome:latest": "npm i -DE @biomejs/biome@latest",
  76. "bump-biome:nightly": "npm i -DE @biomejs/biome@nightly"
  77. },
  78. "devDependencies": {
  79. "@biomejs/biome": "1.6.1",
  80. "@changesets/cli": "^2.27.1",
  81. "@commitlint/cli": "^19.1.0",
  82. "@commitlint/config-conventional": "^19.1.0",
  83. "@vitest/browser": "^1.3.1",
  84. "@vitest/coverage-istanbul": "^1.3.1",
  85. "@vitest/ui": "^1.3.1",
  86. "concurrently": "^8.2.2",
  87. "copy-files-from-to": "^3.9.1",
  88. "lint-staged": "^15.2.2",
  89. "playwright": "^1.42.1",
  90. "prettier": "^3.2.5",
  91. "simple-git-hooks": "^2.10.0",
  92. "typescript": "^5.4.2",
  93. "vite": "^5.1.6",
  94. "vitest": "^1.3.1"
  95. }
  96. }