package.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {
  2. "name": "lru-cache",
  3. "description": "A cache object that deletes the least-recently-used items.",
  4. "version": "11.2.6",
  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.min.js",
  31. "types": "./dist/commonjs/index.d.ts",
  32. "tshy": {
  33. "exports": {
  34. "./raw": "./src/index.ts",
  35. ".": {
  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+ssh://git@github.com/isaacs/node-lru-cache.git"
  50. },
  51. "devDependencies": {
  52. "@types/node": "^24.3.0",
  53. "benchmark": "^2.1.4",
  54. "esbuild": "^0.25.9",
  55. "marked": "^4.2.12",
  56. "mkdirp": "^3.0.1",
  57. "prettier": "^3.6.2",
  58. "tap": "^21.1.0",
  59. "tshy": "^3.0.2",
  60. "typedoc": "^0.28.12"
  61. },
  62. "license": "BlueOak-1.0.0",
  63. "files": [
  64. "dist"
  65. ],
  66. "engines": {
  67. "node": "20 || >=22"
  68. },
  69. "tap": {
  70. "node-arg": [
  71. "--expose-gc"
  72. ],
  73. "plugin": [
  74. "@tapjs/clock"
  75. ]
  76. },
  77. "exports": {
  78. "./raw": {
  79. "import": {
  80. "types": "./dist/esm/index.d.ts",
  81. "default": "./dist/esm/index.js"
  82. },
  83. "require": {
  84. "types": "./dist/commonjs/index.d.ts",
  85. "default": "./dist/commonjs/index.js"
  86. }
  87. },
  88. ".": {
  89. "import": {
  90. "types": "./dist/esm/index.d.ts",
  91. "default": "./dist/esm/index.min.js"
  92. },
  93. "require": {
  94. "types": "./dist/commonjs/index.d.ts",
  95. "default": "./dist/commonjs/index.min.js"
  96. }
  97. }
  98. },
  99. "type": "module",
  100. "module": "./dist/esm/index.min.js"
  101. }