package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. {
  2. "name": "lru-cache",
  3. "description": "A cache object that deletes the least-recently-used items.",
  4. "version": "10.2.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. "@tapjs/clock": "^1.1.16",
  53. "@types/node": "^20.2.5",
  54. "@types/tap": "^15.0.6",
  55. "benchmark": "^2.1.4",
  56. "clock-mock": "^2.0.2",
  57. "esbuild": "^0.17.11",
  58. "eslint-config-prettier": "^8.5.0",
  59. "marked": "^4.2.12",
  60. "mkdirp": "^2.1.5",
  61. "prettier": "^2.6.2",
  62. "tap": "^18.5.7",
  63. "tshy": "^1.8.0",
  64. "tslib": "^2.4.0",
  65. "typedoc": "^0.25.3",
  66. "typescript": "^5.2.2"
  67. },
  68. "license": "ISC",
  69. "files": [
  70. "dist"
  71. ],
  72. "engines": {
  73. "node": "14 || >=16.14"
  74. },
  75. "prettier": {
  76. "semi": false,
  77. "printWidth": 70,
  78. "tabWidth": 2,
  79. "useTabs": false,
  80. "singleQuote": true,
  81. "jsxSingleQuote": false,
  82. "bracketSameLine": true,
  83. "arrowParens": "avoid",
  84. "endOfLine": "lf"
  85. },
  86. "tap": {
  87. "node-arg": [
  88. "--expose-gc"
  89. ],
  90. "plugin": [
  91. "@tapjs/clock"
  92. ]
  93. },
  94. "exports": {
  95. ".": {
  96. "import": {
  97. "types": "./dist/esm/index.d.ts",
  98. "default": "./dist/esm/index.js"
  99. },
  100. "require": {
  101. "types": "./dist/commonjs/index.d.ts",
  102. "default": "./dist/commonjs/index.js"
  103. }
  104. },
  105. "./min": {
  106. "import": {
  107. "types": "./dist/esm/index.d.ts",
  108. "default": "./dist/esm/index.min.js"
  109. },
  110. "require": {
  111. "types": "./dist/commonjs/index.d.ts",
  112. "default": "./dist/commonjs/index.min.js"
  113. }
  114. }
  115. },
  116. "type": "module"
  117. }