package.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. {
  2. "name": "i18next",
  3. "version": "25.7.1",
  4. "description": "i18next internationalization framework",
  5. "main": "./dist/cjs/i18next.js",
  6. "module": "./dist/esm/i18next.js",
  7. "types": "./index.d.ts",
  8. "exports": {
  9. "./package.json": "./package.json",
  10. ".": {
  11. "import": {
  12. "types": "./index.d.mts",
  13. "default": "./dist/esm/i18next.js"
  14. },
  15. "require": {
  16. "types": "./index.d.ts",
  17. "default": "./dist/cjs/i18next.js"
  18. }
  19. }
  20. },
  21. "keywords": [
  22. "i18next",
  23. "internationalization",
  24. "i18n",
  25. "translation",
  26. "localization",
  27. "l10n",
  28. "globalization",
  29. "gettext"
  30. ],
  31. "homepage": "https://www.i18next.com",
  32. "bugs": "https://github.com/i18next/i18next/issues",
  33. "repository": {
  34. "type": "git",
  35. "url": "https://github.com/i18next/i18next.git"
  36. },
  37. "funding": [
  38. {
  39. "type": "individual",
  40. "url": "https://locize.com"
  41. },
  42. {
  43. "type": "individual",
  44. "url": "https://locize.com/i18next.html"
  45. },
  46. {
  47. "type": "individual",
  48. "url": "https://www.i18next.com/how-to/faq#i18next-is-awesome.-how-can-i-support-the-project"
  49. }
  50. ],
  51. "dependencies": {
  52. "@babel/runtime": "^7.28.4"
  53. },
  54. "peerDependencies": {
  55. "typescript": "^5"
  56. },
  57. "peerDependenciesMeta": {
  58. "typescript": {
  59. "optional": true
  60. }
  61. },
  62. "devDependencies": {
  63. "@arktype/attest": "^0.55.0",
  64. "@babel/core": "^7.28.5",
  65. "@babel/plugin-transform-async-generator-functions": "^7.28.0",
  66. "@babel/plugin-transform-modules-commonjs": "^7.27.1",
  67. "@babel/plugin-transform-runtime": "^7.28.5",
  68. "@babel/polyfill": "^7.12.1",
  69. "@babel/preset-env": "^7.28.5",
  70. "@babel/preset-react": "^7.28.5",
  71. "@babel/register": "^7.28.3",
  72. "@rollup/plugin-babel": "^6.1.0",
  73. "@rollup/plugin-commonjs": "^29.0.0",
  74. "@rollup/plugin-node-resolve": "^16.0.3",
  75. "@rollup/plugin-terser": "^0.4.4",
  76. "@types/node": "^22.19.1",
  77. "@typescript-eslint/eslint-plugin": "^7.18.0",
  78. "@typescript-eslint/parser": "^7.18.0",
  79. "@vitest/coverage-v8": "^3.2.4",
  80. "babelify": "^10.0.0",
  81. "coveralls": "^3.1.1",
  82. "cpy-cli": "^5.0.0",
  83. "eslint": "^8.57.1",
  84. "eslint-config-airbnb-base": "^15.0.0",
  85. "eslint-config-prettier": "^10.1.8",
  86. "eslint-import-resolver-typescript": "^4.4.4",
  87. "eslint-plugin-import": "^2.32.0",
  88. "gh-release": "^7.0.2",
  89. "husky": "^9.1.7",
  90. "i18next-browser-languagedetector": "^8.2.0",
  91. "i18next-fs-backend": "^2.6.1",
  92. "i18next-http-backend": "^3.0.2",
  93. "i18next-localstorage-cache": "^1.1.1",
  94. "i18next-sprintf-postprocessor": "^0.2.2",
  95. "lint-staged": "^16.2.6",
  96. "prettier": "^3.6.2",
  97. "rimraf": "^6.1.0",
  98. "rollup": "^4.53.2",
  99. "sinon": "^19.0.5",
  100. "typescript": "^5.9.3",
  101. "vitest": "^3.2.4"
  102. },
  103. "scripts": {
  104. "lint": "eslint src typescript test \"./*.{ts,mts,mjs}\"",
  105. "format": "prettier \"{,**/}*.{ts,tsx,mts,js,mjs,json,md}\" --check",
  106. "format:fix": "prettier \"{,**/}*.{ts,tsx,mts,js,mjs,json,md}\" --write",
  107. "test": "vitest --run",
  108. "test:coverage": "vitest --coverage --run",
  109. "test:runtime": "vitest --project runtime",
  110. "test:compatibility": "vitest --project compatibility",
  111. "test:typescript": "vitest --workspace vitest.workspace.typescript.mts",
  112. "test:local": "vitest --workspace vitest.workspace.local.mts",
  113. "build": "rimraf dist && rollup -c && echo '{\"type\":\"module\"}' > dist/esm/package.json && cpy \"./dist/umd/*.js\" ./",
  114. "fix_dist_package": "node -e 'console.log(`{\"type\":\"module\",\"version\":\"${process.env.npm_package_version}\"}`)' > dist/esm/package.json",
  115. "fix_jsr_package": "node -e 'const fs=require(\"fs\");const p=\"jsr.json\";const j=JSON.parse(fs.readFileSync(p,\"utf8\"));j.version=process.env.npm_package_version||j.version;fs.writeFileSync(p,JSON.stringify(j,null,2)+\"\\n\")' && git commit -a -m 'jsr update' && git push",
  116. "publish_jsr": "deno publish --no-check",
  117. "preversion": "npm run test && npm run build && git push",
  118. "postversion": "npm run fix_dist_package && npm run fix_jsr_package && git push && git push --tags && npm run release && npm run publish_jsr",
  119. "prepare": "husky",
  120. "release": "gh-release"
  121. },
  122. "author": "Jan Mühlemann <jan.muehlemann@gmail.com> (https://github.com/jamuhl)",
  123. "license": "MIT",
  124. "lint-staged": {
  125. "*": "prettier --write --ignore-unknown"
  126. }
  127. }