@yxw007/translate 0.0.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,96 @@
1
+ {
2
+ "name": "@yxw007/translate",
3
+ "version": "0.0.1-alpha.0",
4
+ "description": "A simple library that supports multiple translation engines",
5
+ "author": "Potter<aa4790139@gmail.com>",
6
+ "homepage": "https://yxw007.github.io/translate/",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/yxw007/translate.git"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/yxw007/translate/issues"
13
+ },
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
17
+ "scripts": {
18
+ "lint": "eslint . && prettier -c src",
19
+ "lint:fix": "eslint . --fix && prettier -w src",
20
+ "build": "pnpm clean && tsx script/build.ts",
21
+ "clean": "rm -rf dist",
22
+ "test": "vitest --run",
23
+ "test:coverage": "vitest --coverage --run",
24
+ "release": "pnpm changelogen --release -i --prerelease",
25
+ "prepare": "husky"
26
+ },
27
+ "type": "module",
28
+ "main": "./dist/index.cjs",
29
+ "module": "./dist/index.js",
30
+ "types": "./dist/index.d.ts",
31
+ "exports": {
32
+ "require": "./dist/index.cjs",
33
+ "import": "./dist/index.js"
34
+ },
35
+ "files": [
36
+ "dist",
37
+ "README_zh-CN.md",
38
+ "README.md",
39
+ "package.json"
40
+ ],
41
+ "keywords": [
42
+ "translate",
43
+ "translation",
44
+ "google",
45
+ "i18n",
46
+ "l10n",
47
+ "localization",
48
+ "internationalization"
49
+ ],
50
+ "husky": {
51
+ "hooks": {
52
+ "pre-commit": "lint-staged"
53
+ }
54
+ },
55
+ "lint-staged": {
56
+ "**/*.{ts}": [
57
+ "pnpm lint:fix"
58
+ ]
59
+ },
60
+ "license": "MIT",
61
+ "devDependencies": {
62
+ "@commitlint/config-conventional": "^19.2.2",
63
+ "@eslint/js": "^8.57.0",
64
+ "@rollup/plugin-alias": "^5.1.0",
65
+ "@rollup/plugin-commonjs": "^26.0.1",
66
+ "@rollup/plugin-json": "^6.1.0",
67
+ "@rollup/plugin-node-resolve": "^15.2.3",
68
+ "@rollup/plugin-typescript": "^11.1.6",
69
+ "@types/crypto-js": "^4.2.2",
70
+ "@types/eslint__js": "^8.42.3",
71
+ "@types/node": "^22.5.0",
72
+ "@vitest/coverage-v8": "^2.0.5",
73
+ "changelogen": "^0.5.5",
74
+ "commitlint": "^19.4.0",
75
+ "dotenv": "^16.4.5",
76
+ "eslint": "^8.57.0",
77
+ "globals": "^15.9.0",
78
+ "husky": "^9.1.5",
79
+ "lint-staged": "^15.2.9",
80
+ "prettier": "^3.3.3",
81
+ "rollup": "^4.21.1",
82
+ "rollup-plugin-dts": "^6.1.1",
83
+ "tslib": "^2.7.0",
84
+ "typescript": "^5.5.4",
85
+ "typescript-eslint": "^8.3.0",
86
+ "vitest": "^2.0.5"
87
+ },
88
+ "volta": {
89
+ "node": "22.3.0"
90
+ },
91
+ "dependencies": {
92
+ "@aws-sdk/client-translate": "^3.637.0",
93
+ "@smithy/smithy-client": "^3.2.0",
94
+ "crypto-js": "^4.2.0"
95
+ }
96
+ }
package/package.json ADDED
@@ -0,0 +1,95 @@
1
+ {
2
+ "name": "@yxw007/translate",
3
+ "version": "0.0.1-alpha.0",
4
+ "description": "A simple library that supports multiple translation engines",
5
+ "author": "Potter<aa4790139@gmail.com>",
6
+ "homepage": "https://yxw007.github.io/translate/",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/yxw007/translate.git"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/yxw007/translate/issues"
13
+ },
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
17
+ "type": "module",
18
+ "main": "./dist/index.cjs",
19
+ "module": "./dist/index.js",
20
+ "types": "./dist/index.d.ts",
21
+ "exports": {
22
+ "require": "./dist/index.cjs",
23
+ "import": "./dist/index.js"
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "README_zh-CN.md",
28
+ "README.md",
29
+ "package.json"
30
+ ],
31
+ "keywords": [
32
+ "translate",
33
+ "translation",
34
+ "google",
35
+ "i18n",
36
+ "l10n",
37
+ "localization",
38
+ "internationalization"
39
+ ],
40
+ "husky": {
41
+ "hooks": {
42
+ "pre-commit": "lint-staged"
43
+ }
44
+ },
45
+ "lint-staged": {
46
+ "**/*.{ts}": [
47
+ "pnpm lint:fix"
48
+ ]
49
+ },
50
+ "license": "MIT",
51
+ "devDependencies": {
52
+ "@commitlint/config-conventional": "^19.2.2",
53
+ "@eslint/js": "^8.57.0",
54
+ "@rollup/plugin-alias": "^5.1.0",
55
+ "@rollup/plugin-commonjs": "^26.0.1",
56
+ "@rollup/plugin-json": "^6.1.0",
57
+ "@rollup/plugin-node-resolve": "^15.2.3",
58
+ "@rollup/plugin-typescript": "^11.1.6",
59
+ "@types/crypto-js": "^4.2.2",
60
+ "@types/eslint__js": "^8.42.3",
61
+ "@types/node": "^22.5.0",
62
+ "@vitest/coverage-v8": "^2.0.5",
63
+ "changelogen": "^0.5.5",
64
+ "commitlint": "^19.4.0",
65
+ "dotenv": "^16.4.5",
66
+ "eslint": "^8.57.0",
67
+ "globals": "^15.9.0",
68
+ "husky": "^9.1.5",
69
+ "lint-staged": "^15.2.9",
70
+ "prettier": "^3.3.3",
71
+ "rollup": "^4.21.1",
72
+ "rollup-plugin-dts": "^6.1.1",
73
+ "tslib": "^2.7.0",
74
+ "typescript": "^5.5.4",
75
+ "typescript-eslint": "^8.3.0",
76
+ "vitest": "^2.0.5"
77
+ },
78
+ "volta": {
79
+ "node": "22.3.0"
80
+ },
81
+ "dependencies": {
82
+ "@aws-sdk/client-translate": "^3.637.0",
83
+ "@smithy/smithy-client": "^3.2.0",
84
+ "crypto-js": "^4.2.0"
85
+ },
86
+ "scripts": {
87
+ "lint": "eslint . && prettier -c src",
88
+ "lint:fix": "eslint . --fix && prettier -w src",
89
+ "build": "pnpm clean && tsx script/build.ts",
90
+ "clean": "rm -rf dist",
91
+ "test": "vitest --run",
92
+ "test:coverage": "vitest --coverage --run",
93
+ "release": "pnpm changelogen --release -i --prerelease"
94
+ }
95
+ }