package.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "name": "lru-cache",
  3. "description": "A cache object that deletes the least-recently-used items.",
  4. "version": "7.18.3",
  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. "pretest": "npm run prepare",
  15. "presnap": "npm run prepare",
  16. "prepare": "node ./scripts/transpile-to-esm.js",
  17. "size": "size-limit",
  18. "test": "tap",
  19. "snap": "tap",
  20. "preversion": "npm test",
  21. "postversion": "npm publish",
  22. "prepublishOnly": "git push origin --follow-tags",
  23. "format": "prettier --write .",
  24. "typedoc": "typedoc ./index.d.ts"
  25. },
  26. "type": "commonjs",
  27. "main": "./index.js",
  28. "module": "./index.mjs",
  29. "types": "./index.d.ts",
  30. "exports": {
  31. ".": {
  32. "import": {
  33. "types": "./index.d.ts",
  34. "default": "./index.mjs"
  35. },
  36. "require": {
  37. "types": "./index.d.ts",
  38. "default": "./index.js"
  39. }
  40. },
  41. "./package.json": "./package.json"
  42. },
  43. "repository": "git://github.com/isaacs/node-lru-cache.git",
  44. "devDependencies": {
  45. "@size-limit/preset-small-lib": "^7.0.8",
  46. "@types/node": "^17.0.31",
  47. "@types/tap": "^15.0.6",
  48. "benchmark": "^2.1.4",
  49. "c8": "^7.11.2",
  50. "clock-mock": "^1.0.6",
  51. "eslint-config-prettier": "^8.5.0",
  52. "prettier": "^2.6.2",
  53. "size-limit": "^7.0.8",
  54. "tap": "^16.3.4",
  55. "ts-node": "^10.7.0",
  56. "tslib": "^2.4.0",
  57. "typedoc": "^0.23.24",
  58. "typescript": "^4.6.4"
  59. },
  60. "license": "ISC",
  61. "files": [
  62. "index.js",
  63. "index.mjs",
  64. "index.d.ts"
  65. ],
  66. "engines": {
  67. "node": ">=12"
  68. },
  69. "prettier": {
  70. "semi": false,
  71. "printWidth": 70,
  72. "tabWidth": 2,
  73. "useTabs": false,
  74. "singleQuote": true,
  75. "jsxSingleQuote": false,
  76. "bracketSameLine": true,
  77. "arrowParens": "avoid",
  78. "endOfLine": "lf"
  79. },
  80. "tap": {
  81. "nyc-arg": [
  82. "--include=index.js"
  83. ],
  84. "node-arg": [
  85. "--expose-gc",
  86. "--require",
  87. "ts-node/register"
  88. ],
  89. "ts": false
  90. },
  91. "size-limit": [
  92. {
  93. "path": "./index.js"
  94. }
  95. ]
  96. }