package.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {
  2. "name": "@humanwhocodes/retry",
  3. "version": "0.3.1",
  4. "description": "A utility to retry failed async methods.",
  5. "type": "module",
  6. "main": "dist/retrier.cjs",
  7. "module": "dist/retrier.js",
  8. "types": "dist/retrier.d.ts",
  9. "exports": {
  10. "require": {
  11. "types": "./dist/retrier.d.cts",
  12. "default": "./dist/retrier.cjs"
  13. },
  14. "import": {
  15. "types": "./dist/retrier.d.ts",
  16. "default": "./dist/retrier.js"
  17. }
  18. },
  19. "files": [
  20. "dist"
  21. ],
  22. "engines": {
  23. "node": ">=18.18"
  24. },
  25. "publishConfig": {
  26. "access": "public"
  27. },
  28. "gitHooks": {
  29. "pre-commit": "lint-staged"
  30. },
  31. "lint-staged": {
  32. "*.js": [
  33. "eslint --fix"
  34. ]
  35. },
  36. "funding": {
  37. "type": "github",
  38. "url": "https://github.com/sponsors/nzakas"
  39. },
  40. "scripts": {
  41. "build:cts-types": "node -e \"fs.copyFileSync('dist/retrier.d.ts', 'dist/retrier.d.cts')\"",
  42. "build": "rollup -c && tsc && npm run build:cts-types",
  43. "prepare": "npm run build",
  44. "lint": "eslint src/ tests/",
  45. "pretest": "npm run build",
  46. "test:unit": "mocha tests/retrier.test.js",
  47. "test:build": "node tests/pkg.test.cjs && node tests/pkg.test.mjs",
  48. "test:jsr": "npx jsr@latest publish --dry-run",
  49. "test:emfile": "node tools/check-emfile-handling.js",
  50. "test": "npm run test:unit && npm run test:build"
  51. },
  52. "repository": {
  53. "type": "git",
  54. "url": "git+https://github.com/humanwhocodes/retry.git"
  55. },
  56. "keywords": [
  57. "nodejs",
  58. "retry",
  59. "async",
  60. "promises"
  61. ],
  62. "author": "Nicholas C. Zaks",
  63. "license": "Apache-2.0",
  64. "devDependencies": {
  65. "@eslint/js": "^8.49.0",
  66. "@rollup/plugin-terser": "0.4.4",
  67. "@tsconfig/node16": "^16.1.1",
  68. "@types/mocha": "^10.0.3",
  69. "@types/node": "20.12.6",
  70. "eslint": "^8.21.0",
  71. "lint-staged": "15.2.1",
  72. "mocha": "^10.3.0",
  73. "rollup": "3.29.4",
  74. "typescript": "5.4.4",
  75. "yorkie": "2.0.0"
  76. }
  77. }