package.json 2.8 KB

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