js-opencc 1.0.0 → 1.0.1

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.
package/package.json CHANGED
@@ -1,74 +1,74 @@
1
- {
2
- "name": "js-opencc",
3
- "version": "1.0.0",
4
- "description": "Pure JavaScript implementation of OpenCC for Chinese conversion, with auto-sync from official OpenCC dictionaries",
5
- "type": "module",
6
- "main": "./dist/umd/full.js",
7
- "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
9
- "files": [
10
- "dist",
11
- "data"
12
- ],
13
- "exports": {
14
- ".": {
15
- "import": "./dist/index.js",
16
- "require": "./dist/umd/full.js",
17
- "types": "./dist/index.d.ts"
18
- },
19
- "./cn2t": {
20
- "import": "./dist/umd/cn2t.js",
21
- "require": "./dist/umd/cn2t.js"
22
- },
23
- "./t2cn": {
24
- "import": "./dist/umd/t2cn.js",
25
- "require": "./dist/umd/t2cn.js"
26
- },
27
- "./core": {
28
- "import": "./dist/core.js",
29
- "types": "./dist/core.d.ts"
30
- }
31
- },
32
- "scripts": {
33
- "build": "tsc && rollup -c",
34
- "build:esm": "tsc",
35
- "build:umd": "rollup -c",
36
- "sync:opencc": "tsx scripts/sync-opencc.ts",
37
- "export:pr": "tsx scripts/export-pr.ts",
38
- "test": "vitest run",
39
- "test:watch": "vitest"
40
- },
41
- "keywords": [
42
- "opencc",
43
- "chinese",
44
- "simplified-chinese",
45
- "traditional-chinese",
46
- "chinese-conversion",
47
- "繁简转换",
48
- "簡繁轉換",
49
- "简体",
50
- "繁体",
51
- "中文转换"
52
- ],
53
- "author": "rockbenben",
54
- "license": "Apache-2.0",
55
- "devDependencies": {
56
- "@rollup/plugin-node-resolve": "^16.0.3",
57
- "@rollup/plugin-terser": "^0.4.4",
58
- "@rollup/plugin-typescript": "^12.3.0",
59
- "@types/node": "^25.0.3",
60
- "rollup": "^4.55.1",
61
- "tslib": "^2.8.1",
62
- "tsx": "^4.7.0",
63
- "typescript": "^5.3.0",
64
- "vitest": "^1.2.0"
65
- },
66
- "repository": {
67
- "type": "git",
68
- "url": "git+https://github.com/rockbenben/js-opencc.git"
69
- },
70
- "bugs": {
71
- "url": "https://github.com/rockbenben/js-opencc/issues"
72
- },
73
- "homepage": "https://github.com/rockbenben/js-opencc#readme"
74
- }
1
+ {
2
+ "name": "js-opencc",
3
+ "version": "1.0.1",
4
+ "description": "Pure JavaScript implementation of OpenCC for Chinese conversion, with auto-sync from official OpenCC dictionaries",
5
+ "type": "module",
6
+ "main": "./dist/umd/full.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "data"
12
+ ],
13
+ "exports": {
14
+ ".": {
15
+ "import": "./dist/index.js",
16
+ "require": "./dist/umd/full.js",
17
+ "types": "./dist/index.d.ts"
18
+ },
19
+ "./cn2t": {
20
+ "import": "./dist/umd/cn2t.js",
21
+ "require": "./dist/umd/cn2t.js"
22
+ },
23
+ "./t2cn": {
24
+ "import": "./dist/umd/t2cn.js",
25
+ "require": "./dist/umd/t2cn.js"
26
+ },
27
+ "./core": {
28
+ "import": "./dist/core.js",
29
+ "types": "./dist/core.d.ts"
30
+ }
31
+ },
32
+ "scripts": {
33
+ "build": "npm run sync:opencc && tsc && rollup -c",
34
+ "build:esm": "tsc",
35
+ "build:umd": "rollup -c",
36
+ "sync:opencc": "tsx scripts/sync-opencc.ts",
37
+ "export:pr": "tsx scripts/export-pr.ts",
38
+ "test": "vitest run",
39
+ "test:watch": "vitest"
40
+ },
41
+ "keywords": [
42
+ "opencc",
43
+ "chinese",
44
+ "simplified-chinese",
45
+ "traditional-chinese",
46
+ "chinese-conversion",
47
+ "繁简转换",
48
+ "簡繁轉換",
49
+ "简体",
50
+ "繁体",
51
+ "中文转换"
52
+ ],
53
+ "author": "rockbenben",
54
+ "license": "Apache-2.0",
55
+ "devDependencies": {
56
+ "@rollup/plugin-node-resolve": "^16.0.3",
57
+ "@rollup/plugin-terser": "^0.4.4",
58
+ "@rollup/plugin-typescript": "^12.3.0",
59
+ "@types/node": "^25.0.3",
60
+ "rollup": "^4.55.1",
61
+ "tslib": "^2.8.1",
62
+ "tsx": "^4.7.0",
63
+ "typescript": "^5.3.0",
64
+ "vitest": "^1.2.0"
65
+ },
66
+ "repository": {
67
+ "type": "git",
68
+ "url": "git+https://github.com/rockbenben/js-opencc.git"
69
+ },
70
+ "bugs": {
71
+ "url": "https://github.com/rockbenben/js-opencc/issues"
72
+ },
73
+ "homepage": "https://github.com/rockbenben/js-opencc#readme"
74
+ }