package.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {
  2. "name": "lru-cache",
  3. "description": "A cache object that deletes the least-recently-used items.",
  4. "version": "8.0.5",
  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. "preprepare": "rm -rf dist",
  15. "prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
  16. "postprepare": "bash fixup.sh",
  17. "pretest": "npm run prepare",
  18. "presnap": "npm run prepare",
  19. "test": "c8 tap",
  20. "snap": "c8 tap",
  21. "preversion": "npm test",
  22. "postversion": "npm publish",
  23. "prepublishOnly": "git push origin --follow-tags",
  24. "format": "prettier --write .",
  25. "typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts",
  26. "benchmark-results-typedoc": "bash scripts/benchmark-results-typedoc.sh",
  27. "prebenchmark": "npm run prepare",
  28. "benchmark": "make -C benchmark",
  29. "preprofile": "npm run prepare",
  30. "profile": "make -C benchmark profile"
  31. },
  32. "main": "./dist/cjs/index-cjs.js",
  33. "module": "./dist/mjs/index.js",
  34. "types": "./dist/mjs/index.d.ts",
  35. "exports": {
  36. "./min": {
  37. "import": {
  38. "types": "./dist/mjs/index.d.ts",
  39. "default": "./dist/mjs/index.min.js"
  40. },
  41. "require": {
  42. "types": "./dist/cjs/index.d.ts",
  43. "default": "./dist/cjs/index.min.js"
  44. }
  45. },
  46. ".": {
  47. "import": {
  48. "types": "./dist/mjs/index.d.ts",
  49. "default": "./dist/mjs/index.js"
  50. },
  51. "require": {
  52. "types": "./dist/cjs/index.d.ts",
  53. "default": "./dist/cjs/index-cjs.js"
  54. }
  55. }
  56. },
  57. "repository": "git://github.com/isaacs/node-lru-cache.git",
  58. "devDependencies": {
  59. "@size-limit/preset-small-lib": "^7.0.8",
  60. "@types/node": "^17.0.31",
  61. "@types/tap": "^15.0.6",
  62. "benchmark": "^2.1.4",
  63. "c8": "^7.11.2",
  64. "clock-mock": "^1.0.6",
  65. "esbuild": "^0.17.11",
  66. "eslint-config-prettier": "^8.5.0",
  67. "marked": "^4.2.12",
  68. "mkdirp": "^2.1.5",
  69. "prettier": "^2.6.2",
  70. "size-limit": "^7.0.8",
  71. "tap": "^16.3.4",
  72. "ts-node": "^10.7.0",
  73. "tslib": "^2.4.0",
  74. "typedoc": "^0.23.24",
  75. "typescript": "^4.6.4"
  76. },
  77. "license": "ISC",
  78. "files": [
  79. "dist"
  80. ],
  81. "engines": {
  82. "node": ">=16.14"
  83. },
  84. "prettier": {
  85. "semi": false,
  86. "printWidth": 70,
  87. "tabWidth": 2,
  88. "useTabs": false,
  89. "singleQuote": true,
  90. "jsxSingleQuote": false,
  91. "bracketSameLine": true,
  92. "arrowParens": "avoid",
  93. "endOfLine": "lf"
  94. },
  95. "tap": {
  96. "coverage": false,
  97. "node-arg": [
  98. "--expose-gc",
  99. "--no-warnings",
  100. "--loader",
  101. "ts-node/esm"
  102. ],
  103. "ts": false
  104. },
  105. "size-limit": [
  106. {
  107. "path": "./dist/mjs/index.js"
  108. }
  109. ]
  110. }