-
Notifications
You must be signed in to change notification settings - Fork 204
Expand file tree
/
Copy pathpackage.json
More file actions
211 lines (211 loc) 路 6.27 KB
/
Copy pathpackage.json
File metadata and controls
211 lines (211 loc) 路 6.27 KB
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
{
"name": "next-translate",
"version": "3.2.0",
"description": "Tiny and powerful i18n tools (Next plugin + API) to translate your Next.js pages.",
"license": "MIT",
"keywords": [
"react",
"preact",
"i18n",
"nextjs",
"next.js",
"next",
"plugin",
"translate",
"translation",
"internationalization",
"locale",
"locales",
"globalization"
],
"repository": {
"type": "git",
"url": "https://github.com/aralroca/next-translate.git"
},
"author": {
"name": "Aral Roca G貌mez",
"email": "contact@aralroca.com"
},
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
"types": "./index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js"
},
"./useTranslation": {
"types": "./useTranslation.d.ts",
"import": "./lib/esm/useTranslation.js",
"require": "./lib/cjs/useTranslation.js"
},
"./loadNamespaces": {
"types": "./loadNamespaces.d.ts",
"import": "./lib/esm/loadNamespaces.js",
"require": "./lib/cjs/loadNamespaces.js"
},
"./Trans": {
"types": "./Trans.d.ts",
"import": "./lib/esm/Trans.js",
"require": "./lib/cjs/Trans.js"
},
"./TransText": {
"types": "./TransText.d.ts",
"import": "./lib/esm/TransText.js",
"require": "./lib/cjs/TransText.js"
},
"./I18nProvider": {
"types": "./I18nProvider.d.ts",
"import": "./lib/esm/I18nProvider.js",
"require": "./lib/cjs/I18nProvider.js"
},
"./AppDirI18nProvider": {
"types": "./AppDirI18nProvider.d.ts",
"import": "./lib/esm/AppDirI18nProvider.js",
"require": "./lib/cjs/AppDirI18nProvider.js"
},
"./appWithI18n": {
"types": "./appWithI18n.d.ts",
"import": "./lib/esm/appWithI18n.js",
"require": "./lib/cjs/appWithI18n.js"
},
"./withTranslation": {
"types": "./withTranslation.d.ts",
"import": "./lib/esm/withTranslation.js",
"require": "./lib/cjs/withTranslation.js"
},
"./setLanguage": {
"types": "./setLanguage.d.ts",
"import": "./lib/esm/setLanguage.js",
"require": "./lib/cjs/setLanguage.js"
},
"./getT": {
"types": "./getT.d.ts",
"import": "./lib/esm/getT.js",
"require": "./lib/cjs/getT.js"
},
"./DynamicNamespaces": {
"types": "./DynamicNamespaces.d.ts",
"import": "./lib/esm/DynamicNamespaces.js",
"require": "./lib/cjs/DynamicNamespaces.js"
},
"./context": {
"types": "./context.d.ts",
"import": "./lib/esm/context.js",
"require": "./lib/cjs/context.js"
},
"./createTranslation": {
"types": "./createTranslation.d.ts",
"import": "./lib/esm/createTranslation.js",
"require": "./lib/cjs/createTranslation.js"
},
"./formatElements": {
"types": "./formatElements.d.ts",
"import": "./lib/esm/formatElements.js",
"require": "./lib/cjs/formatElements.js"
},
"./i18nRequestStore": {
"types": "./i18nRequestStore.d.ts",
"import": "./lib/esm/i18nRequestStore.js",
"require": "./lib/cjs/i18nRequestStore.js"
}
},
"files": [
"lib",
"*.d.ts",
"appWithI18n",
"DynamicNamespaces",
"I18nProvider",
"context",
"getT",
"loadNamespaces",
"Trans",
"TransText",
"withTranslation",
"useTranslation",
"setLanguage",
"index",
"AppDirI18nProvider",
"createTranslation",
"formatElements",
"i18nRequestStore"
],
"scripts": {
"build": "yarn clean && cross-env NODE_ENV=production && yarn tsc",
"clean": "yarn clean:build && yarn clean:examples",
"clean:build": "del lib appWith* Dynamic* I18n* i18nStore* i18nRequestStore* index context loadNa* setLang* Trans* useT* withT* getP* getC* *.d.ts getT transC* wrapT* types formatElements isServer AppDirI18nProvider* createTrans* safePluralRules*",
"clean:examples": "del examples/**/.next examples/**/node_modules examples/**/yarn.lock",
"example": "yarn example:complex",
"example:basic": "yarn build && yarn --cwd examples/basic && yarn --cwd examples/basic dev",
"example:complex": "yarn build && yarn --cwd examples/complex && yarn --cwd examples/complex dev",
"example:with-app-directory": "yarn build && yarn --cwd examples/with-app-directory && yarn --cwd examples/with-app-directory dev",
"example:without-loader": "yarn build && yarn --cwd examples/without-loader && yarn --cwd examples/without-loader dev",
"format": "pretty-quick",
"husky": "pretty-quick --staged && yarn test",
"prepare": "husky install",
"prepublish": "yarn test && yarn build",
"test": "cross-env NODE_ENV=test jest --env=jsdom",
"test:coverage": "cross-env NODE_ENV=test jest --env=jsdom --coverage",
"test:watch": "cross-env NODE_ENV=test jest --env=jsdom --watch",
"tsc": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node build-packages.js"
},
"devDependencies": {
"@babel/cli": "7.22.5",
"@babel/core": "7.22.5",
"@babel/preset-env": "7.22.5",
"@babel/preset-typescript": "7.22.5",
"@testing-library/react": "13.4.0",
"@types/jest": "29.5.2",
"@types/node": "20.3.1",
"@types/react": "18.2.13",
"@types/react-dom": "18.2.6",
"@types/webpack": "5.28.1",
"babel-jest": "29.5.0",
"babel-plugin-transform-es2015-modules-commonjs": "6.26.2",
"babel-preset-minify": "0.5.2",
"cross-env": "7.0.3",
"del-cli": "^5.0.0",
"express": "4.18.2",
"husky": "7.0.4",
"jest": "27.3.1",
"next": "13.4.7",
"next-router-mock": "0.9.6",
"prettier": "2.8.8",
"pretty-quick": "3.1.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"supertest": "6.3.3",
"typescript": "5.1.3"
},
"peerDependencies": {
"next": ">= 13.2.5",
"react": ">= 18.0.0"
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true
},
"engines": {
"node": ">=16.10.0"
},
"jest": {
"roots": [
"<rootDir>/__tests__",
"<rootDir>/src"
],
"setupFilesAfterEnv": [
"<rootDir>/jest.setup.js"
],
"testPathIgnorePatterns": [
"/node_modules/",
".utils.js"
],
"transform": {
"^.+\\.(j|t)sx?$": "babel-jest"
}
}
}