forked from i18next/next-i18next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
145 lines (145 loc) · 5.24 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"name": "next-i18next",
"version": "11.3.0",
"repository": "[email protected]:i18next/next-i18next.git",
"author": "i18next",
"funding": [
{
"type": "individual",
"url": "https://locize.com"
},
{
"type": "individual",
"url": "https://locize.com/i18next.html"
},
{
"type": "individual",
"url": "https://www.i18next.com/how-to/faq#i18next-is-awesome.-how-can-i-support-the-project"
}
],
"main": "dist/commonjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/types.d.ts",
"license": "MIT",
"engines": {
"node": ">=12"
},
"description": "The easiest way to translate your NextJs apps.",
"keywords": [
"react",
"i18next",
"nextjs",
"next",
"translation",
"localisation",
"localization",
"locale"
],
"scripts": {
"check-types": "tsc --noEmit",
"lint": "eslint src examples",
"clean": "rm -rf examples/simple/.next && rm -rf examples/ssg/.next && rm -rf dist && mkdir dist",
"build:es": "BABEL_ENV=es babel src --extensions '.ts,.tsx' --out-dir dist/es --copy-files",
"build:cjs": "BABEL_ENV=cjs babel src --extensions '.ts,.tsx' --out-dir dist/commonjs --copy-files",
"build:esm": "BABEL_ENV=esm babel src --extensions '.ts,.tsx' --out-dir dist/esm --copy-files",
"build:types": "tsc --noEmit false --declaration --emitDeclarationOnly --outDir dist/types",
"build": "npm run clean && npm run build:cjs && npm run build:es && npm run build:esm && npm run build:types",
"build:example:simple": "cd examples/simple && npm run build",
"build:example:ssg": "cd examples/ssg && npm run build",
"install:example:simple": "cd examples/simple && npm install",
"install:example:ssg": "cd examples/ssg && npm install",
"install:examples": "npm run install:example:simple && npm run install:example:ssg",
"prepublishOnly": "npm run build",
"example": "npm run example:simple",
"example:prod": "npm run example:simple:prod",
"example:simple": "npm run build && cp -r dist examples/simple/node_modules/next-i18next && cd examples/simple && npm run dev",
"example:simple:prod": "npm run build:example:simple && cd examples/simple && npm run start",
"example:ssg": "npm run build && cp -r dist examples/ssg/node_modules/next-i18next && cd examples/ssg && npm run dev",
"example:ssg:prod": "npm run build:example:ssg && cd examples/ssg && npm run start",
"cypress": "cypress run --config-file cypress/cypress.json",
"test": "npm run check-types && npm run clean && npm run build && npm run build:example:simple && bundlesize && NODE_ENV=test jest --maxWorkers=1 --silent",
"test:e2e": "start-server-and-test 'cd examples/simple && npm run start' 3000 'npm run cypress'",
"contributors:check": "all-contributors check",
"contributors:add": "all-contributors add",
"contributors:generate": "all-contributors generate",
"preversion": "npm run test && npm run build && git push",
"postversion": "git push && git push --tags && npm run release",
"release": "gh-release"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint"
}
},
"bundlesize": [
{
"path": "./examples/simple/.next/static/chunks/*.js",
"maxSize": "50 kB"
},
{
"path": "./examples/simple/.next/static/chunks/main*.js",
"maxSize": "35 kB"
},
{
"path": "./examples/simple/.next/static/chunks/webpack*.js",
"maxSize": "770 B"
}
],
"devDependencies": {
"@babel/cli": "^7.18.9",
"@babel/core": "^7.18.9",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-runtime": "^7.18.9",
"@babel/preset-env": "^7.18.9",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@testing-library/react": "^13.3.0",
"@types/i18next-fs-backend": "^1.1.2",
"@types/jest": "^28.1.6",
"@types/node": "^18.6.2",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@types/testing-library__cypress": "^5.0.9",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"all-contributors-cli": "^6.20.0",
"babel-core": "^7.0.0-bridge.0",
"babel-plugin-add-module-exports": "^1.0.4",
"babel-plugin-transform-async-to-generator": "^6.24.1",
"bundlesize": "^0.18.1",
"cypress": "^9.1.1",
"eslint": "^8.20.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.6.0",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-typescript-sort-keys": "^2.1.0",
"gh-release": "6.0.4",
"husky": "^3.0.0",
"jest": "^26.6.3",
"next": "^12.2.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"start-server-and-test": "^1.14.0",
"typescript": "^4.7.4"
},
"dependencies": {
"@babel/runtime": "^7.18.9",
"@types/hoist-non-react-statics": "^3.3.1",
"core-js": "^3",
"hoist-non-react-statics": "^3.3.2",
"i18next": "^21.8.14",
"i18next-fs-backend": "^1.1.4",
"react-i18next": "^11.18.3"
},
"peerDependencies": {
"next": ">= 10.0.0",
"react": ">= 16.8.0"
},
"resolutions": {
"i18next": ">=21.8.14",
"i18next-fs-backend": ">=1.1.4",
"react-i18next": ">=11.18.3"
}
}