forked from i18next/next-i18next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
121 lines (121 loc) · 4.15 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
{
"name": "next-i18next",
"version": "10.0.1",
"repository": "[email protected]:isaachinman/next-i18next.git",
"author": "Isaac Hinman <[email protected]>",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/isaachinman"
},
"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 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": "yarn clean && yarn build:cjs && yarn build:es && yarn build:esm && yarn build:types",
"build:examples/simple": "yarn --cwd examples/simple && yarn --cwd examples/simple build",
"prepublishOnly": "yarn build",
"run-example": "yarn build && cd examples/simple && yarn && yarn dev",
"run-example:prod": "yarn build:examples/simple && yarn --cwd examples/simple start",
"run-cypress": "cypress run --config-file cypress/cypress.json",
"test": "yarn check-types && yarn clean && yarn build && yarn build:examples/simple && bundlesize && NODE_ENV=test jest --maxWorkers=1 --silent",
"test:e2e": "start-server-and-test 'yarn --cwd examples/simple start' 3000 'yarn run-cypress'",
"contributors:check": "all-contributors check",
"contributors:add": "all-contributors add",
"contributors:generate": "all-contributors generate"
},
"husky": {
"hooks": {
"pre-commit": "yarn lint"
}
},
"bundlesize": [
{
"path": "./examples/simple/.next/static/chunks/commons*.js",
"maxSize": "14 kB"
},
{
"path": "./examples/simple/.next/static/chunks/main*.js",
"maxSize": "8 kB"
},
{
"path": "./examples/simple/.next/static/chunks/webpack*.js",
"maxSize": "760 B"
}
],
"devDependencies": {
"@babel/cli": "^7.10.4",
"@babel/core": "^7.10.4",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-transform-runtime": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"@babel/preset-typescript": "^7.10.4",
"@testing-library/react": "^11.2.5",
"@types/i18next-fs-backend": "^1.1.2",
"@types/jest": "^27.0.1",
"@types/node": "^16.7.1",
"@types/react": "^17.0.3",
"@types/react-dom": "^17.0.3",
"@types/testing-library__cypress": "^5.0.8",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@typescript-eslint/parser": "^4.11.1",
"all-contributors-cli": "^6.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-plugin-add-module-exports": "^1.0.0",
"babel-plugin-transform-async-to-generator": "^6.24.1",
"bundlesize": "^0.18.0",
"cypress": "^9.1.1",
"eslint": "^7.17.0",
"eslint-plugin-cypress": "^2.11.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.5",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-typescript-sort-keys": "^1.5.0",
"husky": "^3.0.0",
"jest": "^26.6.3",
"next": "^10.0.4",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"start-server-and-test": "^1.12.0",
"typescript": "^4.1.3"
},
"dependencies": {
"@babel/runtime": "^7.13.17",
"@types/hoist-non-react-statics": "^3.3.1",
"core-js": "^3",
"hoist-non-react-statics": "^3.2.0",
"i18next": "^21.5.3",
"i18next-fs-backend": "^1.0.7",
"react-i18next": "^11.8.13"
},
"peerDependencies": {
"next": ">= 10.0.0",
"react": ">= 16.8.0"
},
"resolutions": {
"i18next-fs-backend": ">=1.1.4"
}
}