package.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "name": "minipass",
  3. "version": "7.1.2",
  4. "description": "minimal implementation of a PassThrough stream",
  5. "main": "./dist/commonjs/index.js",
  6. "types": "./dist/commonjs/index.d.ts",
  7. "type": "module",
  8. "tshy": {
  9. "selfLink": false,
  10. "main": true,
  11. "exports": {
  12. "./package.json": "./package.json",
  13. ".": "./src/index.ts"
  14. }
  15. },
  16. "exports": {
  17. "./package.json": "./package.json",
  18. ".": {
  19. "import": {
  20. "types": "./dist/esm/index.d.ts",
  21. "default": "./dist/esm/index.js"
  22. },
  23. "require": {
  24. "types": "./dist/commonjs/index.d.ts",
  25. "default": "./dist/commonjs/index.js"
  26. }
  27. }
  28. },
  29. "files": [
  30. "dist"
  31. ],
  32. "scripts": {
  33. "preversion": "npm test",
  34. "postversion": "npm publish",
  35. "prepublishOnly": "git push origin --follow-tags",
  36. "prepare": "tshy",
  37. "pretest": "npm run prepare",
  38. "presnap": "npm run prepare",
  39. "test": "tap",
  40. "snap": "tap",
  41. "format": "prettier --write . --loglevel warn",
  42. "typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
  43. },
  44. "prettier": {
  45. "semi": false,
  46. "printWidth": 75,
  47. "tabWidth": 2,
  48. "useTabs": false,
  49. "singleQuote": true,
  50. "jsxSingleQuote": false,
  51. "bracketSameLine": true,
  52. "arrowParens": "avoid",
  53. "endOfLine": "lf"
  54. },
  55. "devDependencies": {
  56. "@types/end-of-stream": "^1.4.2",
  57. "@types/node": "^20.1.2",
  58. "end-of-stream": "^1.4.0",
  59. "node-abort-controller": "^3.1.1",
  60. "prettier": "^2.6.2",
  61. "tap": "^19.0.0",
  62. "through2": "^2.0.3",
  63. "tshy": "^1.14.0",
  64. "typedoc": "^0.25.1"
  65. },
  66. "repository": "https://github.com/isaacs/minipass",
  67. "keywords": [
  68. "passthrough",
  69. "stream"
  70. ],
  71. "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
  72. "license": "ISC",
  73. "engines": {
  74. "node": ">=16 || 14 >=14.17"
  75. },
  76. "tap": {
  77. "typecheck": true,
  78. "include": [
  79. "test/*.ts"
  80. ]
  81. }
  82. }