-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
140 lines (140 loc) · 4.29 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
{
"name": "@e1011/i18n-kit",
"version": "1.0.32",
"main": "./dist/lib/src/index.js",
"module": "./dist/lib/esm/src/index.js",
"sideEffects": false,
"types": "dist/types/src/index.d.ts",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/edgar0011/e1011-i18n-kit"
},
"files": [
"dist/**"
],
"exports": {
".": {
"import": "./dist/lib/esm/src/index.js",
"require": "./dist/lib/src/index.js",
"types": "./dist/types/src/index.d.ts"
},
"./react": {
"import": "./dist/react/esm/src/react/index.js",
"require": "./dist/react/src/react/index.js",
"types": "./dist/types/src/react/index.d.ts"
},
"./locales": {
"import": "./dist/locales/esm/index.js",
"require": "./dist/locales/index.js",
"types": "./dist/types/src/locales/index.d.ts"
},
"./dist/*": "./dist/*",
"./package.json": "./package.json"
},
"typesVersions": {
"*": {
"react": [
"./dist/types/src/react/index.d.ts"
],
"locales": [
"./dist/types/src/locales/index.d.ts"
]
}
},
"scripts": {
"prepare": "husky install",
"prepublish": "npm run clean && npm run build:lib",
"clean": "rimraf ./dist ./es ./coverage",
"build:lib": "npm run tsc && BABEL_ENV=production NODE_ENV=production rollup --config --environment INCLUDE_DEPS,BUILD:production",
"build": "npm run prepush && npm run build:lib",
"watch": "rollup --config --watch",
"lint": "eslint src --ext js,jsx,ts,tsx",
"lint:quiet": "eslint src --ext js,jsx,ts,tsx --quiet",
"lint:fix": "npm run lint -- --fix",
"test": "jest ./src --verbose",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
"tsc": "tsc",
"prepush": "npm run lint && npm run test && npm run tsc"
},
"devDependencies": {
"@babel/cli": "^7.23.4",
"@babel/core": "^7.23.5",
"@babel/eslint-parser": "^7.23.3",
"@babel/eslint-plugin": "^7.23.5",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.23.5",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/plugin-syntax-optional-chaining": "^7.8.3",
"@babel/plugin-transform-async-to-generator": "^7.23.3",
"@babel/preset-env": "^7.23.5",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@earlorg/eslint-config": "^1.1.2",
"@types/jest": "^29.5.11",
"@types/react": "^18.2.42",
"@types/sanitize-html": "^2.9.5",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"babel-jest": "^29.7.0",
"babel-plugin-module-resolver": "^5.0.0",
"babel-plugin-react-html-attrs": "^3.0.5",
"babel-plugin-transform-remove-console": "^6.9.4",
"babel-plugin-transform-typescript-metadata": "^0.3.2",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-babel-module": "^5.3.2",
"eslint-import-resolver-typescript": "^3.6.1",
"husky": "^8.0.3",
"jest": "^29.7.0",
"prettier": "^3.1.0",
"prettier-eslint": "^16.1.2",
"prettier-eslint-cli": "^8.0.1",
"reflect-metadata": "^0.1.13",
"rollup": "^4.6.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"typescript": "^5.3.3"
},
"dependencies": {
"core-js": "^3.34.0",
"i18next": "^23.7.8",
"react-i18next": "^13.5.0"
},
"jest": {
"moduleDirectories": [
"node_modules"
],
"transformIgnorePatterns": [
"<rootDir>/dist"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|css|pdf)$": "<rootDir>/test/file-mock.js"
},
"verbose": true,
"transform": {
"^.+\\.jsx$": "babel-jest",
"^.+\\.js$": "babel-jest",
"^.+\\.ts$": "babel-jest",
"^.+\\.tsx$": "babel-jest"
},
"moduleFileExtensions": [
"js",
"jsx",
"ts",
"tsx"
],
"coverageDirectory": "report",
"collectCoverageFrom": [
"src/**/*.js"
],
"setupFiles": [
"<rootDir>/test/testSetup.js"
]
}
}