package.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {
  2. "name": "rate-limit-redis",
  3. "version": "4.2.0",
  4. "description": "A Redis store for the `express-rate-limit` middleware",
  5. "author": {
  6. "name": "Wyatt Johnson",
  7. "url": "https://github.com/wyattjoh"
  8. },
  9. "license": "MIT",
  10. "homepage": "https://github.com/express-rate-limit/rate-limit-redis",
  11. "repository": "https://github.com/express-rate-limit/rate-limit-redis",
  12. "type": "module",
  13. "exports": {
  14. ".": {
  15. "import": {
  16. "types": "./dist/index.d.mts",
  17. "default": "./dist/index.mjs"
  18. },
  19. "require": {
  20. "types": "./dist/index.d.cts",
  21. "default": "./dist/index.cjs"
  22. }
  23. }
  24. },
  25. "main": "./dist/index.cjs",
  26. "module": "./dist/index.mjs",
  27. "types": "./dist/index.d.ts",
  28. "files": [
  29. "dist/",
  30. "tsconfig.json",
  31. "package.json",
  32. "readme.md",
  33. "license.md",
  34. "changelog.md"
  35. ],
  36. "engines": {
  37. "node": ">= 16"
  38. },
  39. "scripts": {
  40. "clean": "del-cli dist/ coverage/ *.log *.tmp *.tgz *.bak",
  41. "build": "pkgroll --src source/",
  42. "compile": "run-s clean build",
  43. "lint:code": "xo",
  44. "lint:rest": "prettier --check .",
  45. "lint": "run-s lint:*",
  46. "format:code": "xo --fix",
  47. "format:rest": "prettier --write .",
  48. "format": "run-s format:*",
  49. "test:lib": "jest",
  50. "test": "run-s lint test:*",
  51. "pre-commit": "lint-staged",
  52. "prepare": "run-s compile && husky install config/husky"
  53. },
  54. "peerDependencies": {
  55. "express-rate-limit": ">= 6"
  56. },
  57. "devDependencies": {
  58. "@express-rate-limit/prettier": "1.1.0",
  59. "@express-rate-limit/tsconfig": "1.0.0",
  60. "@jest/globals": "29.7.0",
  61. "@types/express": "4.17.17",
  62. "@types/ioredis-mock": "8.2.2",
  63. "@types/jest": "29.5.4",
  64. "@types/node": "20.6.1",
  65. "cross-env": "7.0.3",
  66. "del-cli": "5.1.0",
  67. "dts-bundle-generator": "8.0.1",
  68. "esbuild": "0.19.3",
  69. "express": "4.18.2",
  70. "express-rate-limit": "7.0.0",
  71. "husky": "8.0.3",
  72. "ioredis": "5.3.2",
  73. "ioredis-mock": "8.8.3",
  74. "jest": "29.7.0",
  75. "lint-staged": "14.0.1",
  76. "npm-run-all": "4.1.5",
  77. "pkgroll": "1.11.0",
  78. "prettier": "3.0.3",
  79. "serve": "14.2.1",
  80. "ts-jest": "29.1.1",
  81. "ts-node": "10.9.1",
  82. "typescript": "5.2.2",
  83. "xo": "0.56.0"
  84. },
  85. "xo": {
  86. "prettier": true,
  87. "rules": {
  88. "@typescript-eslint/no-empty-function": 0,
  89. "@typescript-eslint/no-confusing-void-expression": 0,
  90. "@typescript-eslint/consistent-indexed-object-style": [
  91. "error",
  92. "index-signature"
  93. ]
  94. }
  95. },
  96. "prettier": "@express-rate-limit/prettier",
  97. "lint-staged": {
  98. "{source,test}/**/*.ts": "xo --fix",
  99. "*.{yaml,json,md}": "prettier --write"
  100. }
  101. }