package.json 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. {
  2. "name": "react-i18next",
  3. "version": "16.3.5",
  4. "description": "Internationalization for react done right. Using the i18next i18n ecosystem.",
  5. "main": "dist/commonjs/index.js",
  6. "types": "./index.d.mts",
  7. "jsnext:main": "dist/es/index.js",
  8. "module": "dist/es/index.js",
  9. "keywords": [
  10. "i18next",
  11. "internationalization",
  12. "i18n",
  13. "translation",
  14. "localization",
  15. "l10n",
  16. "globalization",
  17. "react",
  18. "reactjs"
  19. ],
  20. "exports": {
  21. "./package.json": "./package.json",
  22. ".": {
  23. "types": {
  24. "require": "./index.d.ts",
  25. "import": "./index.d.mts"
  26. },
  27. "module": "./dist/es/index.js",
  28. "import": "./dist/es/index.js",
  29. "require": "./dist/commonjs/index.js",
  30. "default": "./dist/es/index.js"
  31. },
  32. "./TransWithoutContext": {
  33. "types": {
  34. "require": "./TransWithoutContext.d.ts",
  35. "import": "./TransWithoutContext.d.mts"
  36. },
  37. "module": "./dist/es/TransWithoutContext.js",
  38. "import": "./dist/es/TransWithoutContext.js",
  39. "require": "./dist/commonjs/TransWithoutContext.js",
  40. "default": "./dist/es/TransWithoutContext.js"
  41. },
  42. "./initReactI18next": {
  43. "types": {
  44. "require": "./initReactI18next.d.ts",
  45. "import": "./initReactI18next.d.mts"
  46. },
  47. "module": "./dist/es/initReactI18next.js",
  48. "import": "./dist/es/initReactI18next.js",
  49. "require": "./dist/commonjs/initReactI18next.js",
  50. "default": "./dist/es/initReactI18next.js"
  51. },
  52. "./icu.macro": {
  53. "types": {
  54. "require": "./icu.macro.d.ts",
  55. "import": "./icu.macro.d.mts"
  56. },
  57. "module": "./icu.macro.js",
  58. "import": "./icu.macro.js",
  59. "require": "./icu.macro.js",
  60. "default": "./icu.macro.js"
  61. }
  62. },
  63. "homepage": "https://github.com/i18next/react-i18next",
  64. "bugs": "https://github.com/i18next/react-i18next/issues",
  65. "repository": {
  66. "type": "git",
  67. "url": "https://github.com/i18next/react-i18next.git"
  68. },
  69. "dependencies": {
  70. "@babel/runtime": "^7.27.6",
  71. "html-parse-stringify": "^3.0.1",
  72. "use-sync-external-store": "^1.6.0"
  73. },
  74. "peerDependencies": {
  75. "i18next": ">= 25.6.2",
  76. "react": ">= 16.8.0",
  77. "typescript": "^5"
  78. },
  79. "peerDependenciesMeta": {
  80. "react-dom": {
  81. "optional": true
  82. },
  83. "react-native": {
  84. "optional": true
  85. },
  86. "typescript": {
  87. "optional": true
  88. }
  89. },
  90. "devDependencies": {
  91. "@babel/cli": "^7.28.0",
  92. "@babel/core": "^7.28.0",
  93. "@babel/eslint-parser": "^7.28.0",
  94. "@babel/plugin-proposal-async-generator-functions": "^7.20.7",
  95. "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
  96. "@babel/plugin-transform-modules-commonjs": "^7.27.1",
  97. "@babel/plugin-transform-runtime": "^7.28.0",
  98. "@babel/polyfill": "^7.12.1",
  99. "@babel/preset-env": "^7.28.0",
  100. "@babel/preset-react": "^7.27.1",
  101. "@babel/register": "^7.27.1",
  102. "@rollup/plugin-babel": "^6.0.4",
  103. "@rollup/plugin-commonjs": "^26.0.3",
  104. "@rollup/plugin-node-resolve": "^15.3.1",
  105. "@rollup/plugin-replace": "^5.0.7",
  106. "@rollup/plugin-terser": "0.4.4",
  107. "@testing-library/dom": "^10.4.0",
  108. "@testing-library/jest-dom": "^6.4.8",
  109. "@testing-library/react": "^16.1.0",
  110. "@types/jest": "^29.5.12",
  111. "@types/react": "^19.1.0",
  112. "@vitest/coverage-v8": "^2.0.5",
  113. "all-contributors-cli": "^6.26.1",
  114. "babel-core": "^7.0.0-bridge.0",
  115. "babel-plugin-macros": "^3.1.0",
  116. "babel-plugin-tester": "^11.0.4",
  117. "coveralls": "^3.1.1",
  118. "cpy-cli": "^5.0.0",
  119. "cross-env": "^7.0.3",
  120. "eslint": "^8.57.0",
  121. "eslint-config-airbnb": "19.0.4",
  122. "eslint-config-prettier": "^9.1.0",
  123. "eslint-plugin-import": "^2.32.0",
  124. "eslint-plugin-jest-dom": "^5.5.0",
  125. "eslint-plugin-jsx-a11y": "^6.10.2",
  126. "eslint-plugin-react": "^7.37.5",
  127. "eslint-plugin-testing-library": "^6.5.0",
  128. "happy-dom": "^14.12.3",
  129. "husky": "^9.1.7",
  130. "i18next": "^25.6.2",
  131. "lint-staged": "^15.5.2",
  132. "mkdirp": "^3.0.1",
  133. "prettier": "^3.6.2",
  134. "react": "^19.1.0",
  135. "react-dom": "^19.1.0",
  136. "react-test-renderer": "^19.1.0",
  137. "rimraf": "^6.0.1",
  138. "rollup": "^4.44.1",
  139. "typescript": "~5.5.4",
  140. "vitest": "^2.0.5",
  141. "yargs": "^17.7.2"
  142. },
  143. "scripts": {
  144. "clean": "rimraf dist && mkdirp dist",
  145. "lint": "eslint --cache .",
  146. "lint:fix": "eslint --cache --fix .",
  147. "format": "prettier . --check",
  148. "format:fix": "prettier . --write --list-different",
  149. "copy": "cpy ./dist/umd/react-i18next.min.js ./dist/umd/react-i18next.js . --flat && echo '{\"type\":\"module\"}' > dist/es/package.json",
  150. "build:es": "cross-env BABEL_ENV=ESNext babel src --out-dir dist/es",
  151. "build:cjs": "babel src --out-dir dist/commonjs",
  152. "build:umd": "rollup -c rollup.config.mjs --format umd && rollup -c rollup.config.mjs --format umd --uglify",
  153. "build:amd": "rollup -c rollup.config.mjs --format amd && rollup -c rollup.config.mjs --format amd --uglify",
  154. "build:iife": "rollup -c rollup.config.mjs --format iife && rollup -c rollup.config.mjs --format iife --uglify",
  155. "build": "npm run clean && npm run build:cjs && npm run build:es && npm run build:umd && npm run build:amd && npm run copy",
  156. "fix_dist_package": "node -e 'console.log(`{\"type\":\"module\",\"version\":\"${process.env.npm_package_version}\"}`)' > dist/es/package.json",
  157. "preversion": "npm run build && git push",
  158. "postversion": "npm run fix_dist_package && git push && git push --tags",
  159. "test": "vitest",
  160. "test:coverage": "npm run test -- --coverage --run",
  161. "test:typescript": "vitest --workspace vitest.workspace.typescript.mts",
  162. "contributors:add": "all-contributors add",
  163. "contributors:generate": "all-contributors generate",
  164. "prepare": "husky"
  165. },
  166. "author": "Jan Mühlemann <jan.muehlemann@gmail.com> (https://github.com/jamuhl)",
  167. "license": "MIT",
  168. "lock": false,
  169. "sideEffects": false,
  170. "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
  171. }