package.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. {
  2. "name": "i18next",
  3. "version": "23.16.8",
  4. "description": "i18next internationalization framework",
  5. "main": "./dist/cjs/i18next.js",
  6. "module": "./dist/esm/i18next.js",
  7. "types": "./index.d.ts",
  8. "typesVersions": {
  9. "<5.0": {
  10. "typescript/t.d.ts": [
  11. "typescript/t.v4.d.ts"
  12. ],
  13. "index.d.ts": [
  14. "index.v4.d.ts"
  15. ]
  16. }
  17. },
  18. "exports": {
  19. "./package.json": "./package.json",
  20. ".": {
  21. "import": {
  22. "types": "./index.d.mts",
  23. "default": "./dist/esm/i18next.js"
  24. },
  25. "require": {
  26. "types": "./index.d.ts",
  27. "default": "./dist/cjs/i18next.js"
  28. }
  29. }
  30. },
  31. "keywords": [
  32. "i18next",
  33. "internationalization",
  34. "i18n",
  35. "translation",
  36. "localization",
  37. "l10n",
  38. "globalization",
  39. "gettext"
  40. ],
  41. "homepage": "https://www.i18next.com",
  42. "bugs": "https://github.com/i18next/i18next/issues",
  43. "repository": {
  44. "type": "git",
  45. "url": "https://github.com/i18next/i18next.git"
  46. },
  47. "funding": [
  48. {
  49. "type": "individual",
  50. "url": "https://locize.com"
  51. },
  52. {
  53. "type": "individual",
  54. "url": "https://locize.com/i18next.html"
  55. },
  56. {
  57. "type": "individual",
  58. "url": "https://www.i18next.com/how-to/faq#i18next-is-awesome.-how-can-i-support-the-project"
  59. }
  60. ],
  61. "dependencies": {
  62. "@babel/runtime": "^7.23.2"
  63. },
  64. "devDependencies": {
  65. "@babel/core": "^7.23.3",
  66. "@babel/plugin-proposal-async-generator-functions": "^7.20.7",
  67. "@babel/plugin-transform-modules-commonjs": "^7.23.3",
  68. "@babel/plugin-transform-runtime": "^7.23.3",
  69. "@babel/polyfill": "^7.2.5",
  70. "@babel/preset-env": "^7.23.3",
  71. "@babel/preset-react": "^7.23.3",
  72. "@babel/register": "^7.22.15",
  73. "@rollup/plugin-babel": "^6.0.4",
  74. "@rollup/plugin-commonjs": "^25.0.7",
  75. "@rollup/plugin-node-resolve": "^15.2.3",
  76. "@rollup/plugin-terser": "0.4.4",
  77. "@types/node": "20.14.10",
  78. "@typescript-eslint/eslint-plugin": "7.8.0",
  79. "@typescript-eslint/parser": "7.8.0",
  80. "@vitest/coverage-v8": "2.0.2",
  81. "babelify": "^10.0.0",
  82. "coveralls": "3.1.1",
  83. "cpy-cli": "^5.0.0",
  84. "eslint": "8.57.0",
  85. "eslint-config-airbnb-base": "^15.0.0",
  86. "eslint-config-prettier": "^9.0.0",
  87. "eslint-import-resolver-typescript": "^3.6.1",
  88. "eslint-plugin-import": "2.29.0",
  89. "gh-release": "7.0.2",
  90. "husky": "^8.0.3",
  91. "i18next-browser-languagedetector": "7.1.0",
  92. "i18next-fs-backend": "2.2.0",
  93. "i18next-http-backend": "2.3.1",
  94. "i18next-localstorage-cache": "1.1.1",
  95. "i18next-sprintf-postprocessor": "0.2.2",
  96. "lint-staged": "^15.0.2",
  97. "prettier": "^3.0.3",
  98. "rimraf": "5.0.5",
  99. "rollup": "^4.3.0",
  100. "sinon": "17.0.1",
  101. "typescript": "5.4.4",
  102. "vitest": "2.0.2"
  103. },
  104. "scripts": {
  105. "lint": "eslint src typescript test \"./*.{ts,mts,mjs}\"",
  106. "format": "prettier \"{,**/}*.{ts,tsx,mts,js,mjs,json,md}\" --check",
  107. "format:fix": "prettier \"{,**/}*.{ts,tsx,mts,js,mjs,json,md}\" --write",
  108. "pretest": "npm run generate_ts_v4_index",
  109. "pretest:typescript": "npm run generate_ts_v4_index",
  110. "test": "vitest --run",
  111. "test:coverage": "vitest --coverage --run",
  112. "test:runtime": "vitest --project runtime",
  113. "test:compatibility": "vitest --project compatibility",
  114. "test:typescript": "vitest --workspace vitest.workspace.typescript.mts",
  115. "test:local": "vitest --workspace vitest.workspace.local.mts",
  116. "build": "rimraf dist && rollup -c && echo '{\"type\":\"module\"}' > dist/esm/package.json && cpy \"./dist/umd/*.js\" ./",
  117. "generate_ts_v4_index": "cp index.d.ts index.v4.d.ts && node -e \"fs.writeFileSync('index.v4.d.ts', fs.readFileSync('index.v4.d.ts').toString().replace(/t.js/g, 't.v4.js').replace(/export type \\* /g, '// export type * '))\"",
  118. "fix_dist_package": "node -e 'console.log(`{\"type\":\"module\",\"version\":\"${process.env.npm_package_version}\"}`)' > dist/esm/package.json",
  119. "preversion": "npm run test && npm run build && git push",
  120. "postversion": "npm run fix_dist_package && git push && git push --tags && npm run release",
  121. "prepare": "husky install",
  122. "release": "gh-release"
  123. },
  124. "author": "Jan Mühlemann <jan.muehlemann@gmail.com> (https://github.com/jamuhl)",
  125. "license": "MIT",
  126. "lint-staged": {
  127. "*.{ts,tsx,mts,js,mjs,json,md}": "prettier --write"
  128. }
  129. }