package.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. "name": "next-translate",
  3. "version": "1.6.0",
  4. "description": "Tiny and powerful i18n tools (Next plugin + API) to translate your Next.js pages.",
  5. "license": "MIT",
  6. "keywords": [
  7. "react",
  8. "preact",
  9. "i18n",
  10. "nextjs",
  11. "next.js",
  12. "next",
  13. "plugin",
  14. "translate",
  15. "translation",
  16. "internationalization",
  17. "locale",
  18. "locales",
  19. "globalization"
  20. ],
  21. "repository": {
  22. "type": "git",
  23. "url": "https://github.com/vinissimus/next-translate.git"
  24. },
  25. "author": {
  26. "name": "Aral Roca Gòmez",
  27. "email": "contact@aralroca.com"
  28. },
  29. "main": "./lib/cjs/index.js",
  30. "module": "./lib/esm/index.js",
  31. "types": "./index.d.ts",
  32. "files": [
  33. "lib",
  34. "plugin*",
  35. "appWithI18n*",
  36. "DynamicNamespaces*",
  37. "I18nProvider*",
  38. "getT*",
  39. "loadNamespaces*",
  40. "Trans*",
  41. "withTranslation*",
  42. "useTranslation*",
  43. "setLanguage*",
  44. "index*"
  45. ],
  46. "scripts": {
  47. "build": "yarn clean && cross-env NODE_ENV=production && yarn tsc",
  48. "clean": "yarn clean:build && yarn clean:examples",
  49. "clean:build": "rm -rf lib plugin appWith* Dynamic* I18n* index _context loadNa* setLang* Trans* useT* withT* getP* getC* *.d.ts getT transC* wrapT* types formatElements",
  50. "clean:examples": "rm -rf examples/**/.next && rm -rf examples/**/node_modules && rm -rf examples/**/yarn.lock",
  51. "example": "yarn example:complex",
  52. "example:basic": "yarn build && cd examples/basic && yarn && yarn dev",
  53. "example:complex": "yarn build && cd examples/complex && yarn && yarn dev",
  54. "example:without-loader": "yarn build && cd examples/without-loader && yarn && yarn dev",
  55. "format": "pretty-quick",
  56. "husky": "pretty-quick --staged && yarn test",
  57. "prepare": "husky install",
  58. "prepublish": "yarn test && yarn build",
  59. "test": "cross-env NODE_ENV=test jest --env=jsdom",
  60. "test:coverage": "cross-env NODE_ENV=test jest --env=jsdom --coverage",
  61. "test:watch": "cross-env NODE_ENV=test jest --env=jsdom --watch",
  62. "tsc": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node build-packages.js"
  63. },
  64. "devDependencies": {
  65. "@babel/cli": "7.16.0",
  66. "@babel/core": "7.16.0",
  67. "@babel/preset-env": "7.16.4",
  68. "@babel/preset-typescript": "7.16.0",
  69. "@testing-library/react": "12.1.2",
  70. "@types/jest": "27.4.0",
  71. "@types/node": "16.11.7",
  72. "@types/react": "17.0.35",
  73. "@types/react-dom": "17.0.11",
  74. "@types/webpack": "5.28.0",
  75. "babel-jest": "27.3.1",
  76. "babel-plugin-transform-es2015-modules-commonjs": "6.26.2",
  77. "babel-preset-minify": "0.5.1",
  78. "cross-env": "7.0.3",
  79. "express": "4.17.1",
  80. "husky": "7.0.4",
  81. "jest": "27.3.1",
  82. "next": "12.0.4",
  83. "prettier": "2.4.1",
  84. "pretty-quick": "3.1.2",
  85. "react": "17.0.2",
  86. "react-dom": "17.0.2",
  87. "supertest": "6.1.6",
  88. "typescript": "4.5.2"
  89. },
  90. "peerDependencies": {
  91. "next": ">= 10.0.0",
  92. "react": ">= 16.8.0"
  93. },
  94. "prettier": {
  95. "trailingComma": "es5",
  96. "tabWidth": 2,
  97. "semi": false,
  98. "singleQuote": true
  99. },
  100. "jest": {
  101. "roots": [
  102. "<rootDir>/__tests__",
  103. "<rootDir>/src"
  104. ],
  105. "testPathIgnorePatterns": [
  106. "/node_modules/",
  107. ".utils.js"
  108. ],
  109. "transform": {
  110. "^.+\\.(j|t)sx?$": "babel-jest"
  111. }
  112. }
  113. }