package.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {
  2. "name": "lru-cache",
  3. "description": "A cache object that deletes the least-recently-used items.",
  4. "version": "11.0.2",
  5. "author": "Isaac Z. Schlueter <i@izs.me>",
  6. "keywords": [
  7. "mru",
  8. "lru",
  9. "cache"
  10. ],
  11. "sideEffects": false,
  12. "scripts": {
  13. "build": "npm run prepare",
  14. "prepare": "tshy && bash fixup.sh",
  15. "pretest": "npm run prepare",
  16. "presnap": "npm run prepare",
  17. "test": "tap",
  18. "snap": "tap",
  19. "preversion": "npm test",
  20. "postversion": "npm publish",
  21. "prepublishOnly": "git push origin --follow-tags",
  22. "format": "prettier --write .",
  23. "typedoc": "typedoc --tsconfig ./.tshy/esm.json ./src/*.ts",
  24. "benchmark-results-typedoc": "bash scripts/benchmark-results-typedoc.sh",
  25. "prebenchmark": "npm run prepare",
  26. "benchmark": "make -C benchmark",
  27. "preprofile": "npm run prepare",
  28. "profile": "make -C benchmark profile"
  29. },
  30. "main": "./dist/commonjs/index.js",
  31. "types": "./dist/commonjs/index.d.ts",
  32. "tshy": {
  33. "exports": {
  34. ".": "./src/index.ts",
  35. "./min": {
  36. "import": {
  37. "types": "./dist/esm/index.d.ts",
  38. "default": "./dist/esm/index.min.js"
  39. },
  40. "require": {
  41. "types": "./dist/commonjs/index.d.ts",
  42. "default": "./dist/commonjs/index.min.js"
  43. }
  44. }
  45. }
  46. },
  47. "repository": {
  48. "type": "git",
  49. "url": "git://github.com/isaacs/node-lru-cache.git"
  50. },
  51. "devDependencies": {
  52. "@types/node": "^22.5.4",
  53. "@types/tap": "^15.0.6",
  54. "benchmark": "^2.1.4",
  55. "esbuild": "^0.17.11",
  56. "eslint-config-prettier": "^8.5.0",
  57. "marked": "^4.2.12",
  58. "mkdirp": "^2.1.5",
  59. "prettier": "^2.6.2",
  60. "tap": "^21.0.1",
  61. "tshy": "^3.0.2",
  62. "tslib": "^2.4.0",
  63. "typedoc": "^0.26.6"
  64. },
  65. "license": "ISC",
  66. "files": [
  67. "dist"
  68. ],
  69. "engines": {
  70. "node": "20 || >=22"
  71. },
  72. "prettier": {
  73. "semi": false,
  74. "printWidth": 70,
  75. "tabWidth": 2,
  76. "useTabs": false,
  77. "singleQuote": true,
  78. "jsxSingleQuote": false,
  79. "bracketSameLine": true,
  80. "arrowParens": "avoid",
  81. "endOfLine": "lf"
  82. },
  83. "tap": {
  84. "node-arg": [
  85. "--expose-gc"
  86. ],
  87. "plugin": [
  88. "@tapjs/clock"
  89. ]
  90. },
  91. "exports": {
  92. ".": {
  93. "import": {
  94. "types": "./dist/esm/index.d.ts",
  95. "default": "./dist/esm/index.js"
  96. },
  97. "require": {
  98. "types": "./dist/commonjs/index.d.ts",
  99. "default": "./dist/commonjs/index.js"
  100. }
  101. },
  102. "./min": {
  103. "import": {
  104. "types": "./dist/esm/index.d.ts",
  105. "default": "./dist/esm/index.min.js"
  106. },
  107. "require": {
  108. "types": "./dist/commonjs/index.d.ts",
  109. "default": "./dist/commonjs/index.min.js"
  110. }
  111. }
  112. },
  113. "type": "module",
  114. "module": "./dist/esm/index.js"
  115. }