-
-
Notifications
You must be signed in to change notification settings - Fork 765
/
package.json
147 lines (147 loc) · 6.35 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
146
147
{
"name": "next-i18next",
"version": "15.3.1",
"repository": "[email protected]:i18next/next-i18next.git",
"author": "i18next",
"funding": [
{
"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"
},
{
"type": "individual",
"url": "https://locize.com"
}
],
"main": "dist/commonjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/types.d.ts",
"license": "MIT",
"engines": {
"node": ">=14"
},
"description": "The easiest way to translate your NextJs apps.",
"keywords": [
"react",
"i18next",
"nextjs",
"next",
"translation",
"localisation",
"localization",
"locale"
],
"scripts": {
"prettier": "prettier --ignore-path .gitignore --write .",
"lint": "eslint src examples",
"clean": "rm -rf ./examples/simple/.next ./examples/ssg/.next ./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-all -s clean build:cjs build:es build:esm build:types",
"build:examples": "npm-run-all -s build:example:*",
"build:example:simple": "cd examples/simple && npm run build",
"build:example:ssg": "cd examples/ssg && npm run build",
"build:example:auto-static-optimize": "cd examples/auto-static-optimize && npm run build",
"typecheck": "tsc --project ./tsconfig.json --noEmit",
"typecheck:example:simple": "cd examples/simple && npm run typecheck",
"check-size": "size-limit",
"check-size:why": "size-limit --why",
"check-dist": "npm-run-all -s check-dist:*",
"check-dist:browser-cjs": "es-check --not 'dist/**/*.map.js,dist/commonjs/createClient/package.json,dist/commonjs/**node**.js,dist/commonjs/serverSideTranslations.js' -v es2017 './dist/commonjs/**/*'",
"check-dist:browser-esm": "es-check --not 'dist/**/*.map.js,dist/esm/createClient/package.json,dist/**node**.js,dist/esm/serverSideTranslations.js' -v es2017 --module './dist/esm/**/*'",
"test": "NODE_ENV=test jest --maxWorkers=1 --silent",
"install:examples": "npm-run-all -s install:example:*",
"install:example:simple": "cd examples/simple && npm install",
"install:example:ssg": "cd examples/ssg && npm install",
"install:example:auto-static-optimize": "cd examples/auto-static-optimize && npm install",
"move-build-to-examples?": "Hack: see # @link https://github.com/i18next/next-i18next/pull/2012",
"move-build-to-examples": "rimraf ./examples/*/node_modules/next-i18next && cpy './package.json' './*.js' './*.ts' './dist' ./examples/simple/node_modules/next-i18next && cpy './package.json' './*.js' './*.ts' './dist' ./examples/ssg/node_modules/next-i18next && cpy './package.json' './*.js' './*.ts' './dist' ./examples/auto-static-optimize/node_modules/next-i18next ",
"test:e2e": "start-server-and-test 'cd examples/simple && npm run start' http://127.0.0.1:3000 cy:run",
"cy:run": "cypress run",
"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",
"prepublishOnly": "npm run build",
"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",
"nuke:install": "rimraf '**/node_modules' '**/package-lock.json'",
"prepare": "husky install"
},
"devDependencies": {
"@babel/cli": "7.23.0",
"@babel/core": "7.23.2",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-transform-runtime": "7.23.2",
"@babel/preset-env": "7.23.2",
"@babel/preset-react": "7.22.15",
"@babel/preset-typescript": "7.23.2",
"@size-limit/file": "^10.0.2",
"@size-limit/webpack": "^10.0.2",
"@size-limit/webpack-why": "^10.0.2",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.7",
"@types/node": "^20.8.10",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/testing-library__cypress": "^5.0.12",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"all-contributors-cli": "^6.26.1",
"babel-core": "7.0.0-bridge.0",
"babel-plugin-add-module-exports": "1.0.4",
"babel-plugin-transform-async-to-generator": "6.24.1",
"cpy-cli": "^5.0.0",
"cypress": "^13.4.0",
"es-check": "^7.1.1",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jest": "^27.6.0",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-typescript-sort-keys": "^3.1.0",
"gh-release": "7.0.2",
"husky": "^8.0.3",
"i18next": "^23.12.2",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"next": "^14.0.1",
"npm-run-all": "^4.1.5",
"prettier": "3.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^15.0.0",
"rimraf": "^5.0.5",
"size-limit": "^10.0.2",
"start-server-and-test": "^2.0.1",
"typescript": "^5.2.2",
"webpack": "^5.89.0"
},
"dependencies": {
"@babel/runtime": "^7.23.2",
"@types/hoist-non-react-statics": "^3.3.4",
"core-js": "^3",
"hoist-non-react-statics": "^3.3.2",
"i18next-fs-backend": "^2.3.2"
},
"peerDependencies": {
"i18next": ">= 23.7.13",
"next": ">= 12.0.0",
"react": ">= 17.0.2",
"react-i18next": ">= 13.5.0"
}
}