-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
119 lines (119 loc) · 2.83 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
{
"name": "@yxw007/translate",
"version": "0.1.6",
"description": "A simple library that supports multiple translation engines",
"author": "Potter<aa4790139@gmail.com>",
"homepage": "https://github.com/yxw007/translate",
"repository": {
"type": "git",
"url": "git+https://github.com/yxw007/translate.git"
},
"bugs": {
"url": "https://github.com/yxw007/translate/issues"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"lint": "eslint . && prettier -c src",
"lint:fix": "eslint . --fix && prettier -w src",
"build": "pnpm clean && tsx script/build.ts",
"clean": "rm -rf dist",
"test": "vitest --run",
"test:coverage": "vitest --coverage --run",
"release": "pnpm changelogen --release -i",
"prepare": "husky"
},
"type": "module",
"main": "./dist/node/index.cjs",
"module": "./dist/node/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"browser": {
"require": "./dist/browser/index.cjs",
"default": "./dist/browser/index.esm.js",
"types": "./dist/index.d.ts"
},
"default": {
"require": "./dist/node/index.cjs",
"default": "./dist/node/index.js",
"types": "./dist/index.d.ts"
}
}
},
"files": [
"dist",
"README_zh-CN.md",
"README.md",
"package.json"
],
"keywords": [
"typescript",
"node",
"browser",
"translate",
"translation",
"google",
"i18n",
"l10n",
"localization",
"internationalization",
"azure",
"amazon",
"baidu",
"yandex",
"ai",
"deepl"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.{ts}": [
"pnpm lint:fix"
]
},
"license": "MIT",
"devDependencies": {
"@commitlint/config-conventional": "^19.2.2",
"@eslint/js": "^8.57.0",
"@rollup/plugin-alias": "^5.1.0",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/crypto-js": "^4.2.2",
"@types/eslint__js": "^8.42.3",
"@types/node": "^22.5.0",
"@vitest/coverage-v8": "^2.0.5",
"chalk": "^5.3.0",
"changelogen": "^0.5.5",
"commitlint": "^19.4.0",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"globals": "^15.9.0",
"husky": "^9.1.5",
"lint-staged": "^15.2.9",
"maxmin": "^4.1.0",
"prettier": "^3.3.3",
"rollup": "^4.21.1",
"rollup-plugin-dts": "^6.1.1",
"tslib": "^2.7.0",
"tsx": "^4.19.2",
"typescript": "^5.5.4",
"typescript-eslint": "^8.3.0",
"vitest": "^2.0.5"
},
"volta": {
"node": "22.3.0"
},
"peerDependencies": {
"@aws-sdk/client-translate": "^3.637.0",
"@smithy/smithy-client": "^3.2.0",
"crypto-js": "^4.2.0"
}
}