forked from nk2028/opencc-js
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
86 lines (86 loc) · 2.71 KB
/
package.json
File metadata and controls
86 lines (86 loc) · 2.71 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
{
"name": "opencc-js",
"version": "1.0.5",
"description": "The JavaScript version of Open Chinese Convert (OpenCC)",
"type": "module",
"main": "./dist/main.js",
"module": "./dist/main.mjs",
"types": "./dist/main.d.ts",
"exports": {
".": {
"types": "./dist/main.d.ts",
"import": "./dist/main.mjs",
"require": "./dist/main.js"
},
"./cn2t": {
"types": "./dist/cn2t.d.ts",
"import": "./dist/cn2t.mjs",
"require": "./dist/cn2t.js"
},
"./t2cn": {
"types": "./dist/t2cn.d.ts",
"import": "./dist/t2cn.mjs",
"require": "./dist/t2cn.js"
},
"./full": {
"types": "./dist/full.d.ts",
"import": "./dist/full.mjs",
"require": "./dist/full.js"
}
},
"scripts": {
"prepare-data": "node --loader ts-node/esm build.ts",
"build:main": "vite build",
"build:cn2t": "vite build --config vite.cn2t.config.ts",
"build:t2cn": "vite build --config vite.t2cn.config.ts",
"build:full": "vite build --config vite.full.config.ts",
"build:types": "tsc --emitDeclarationOnly --skipLibCheck",
"build": "pnpm prepare-data && pnpm build:main && pnpm build:cn2t && pnpm build:t2cn && pnpm build:full && pnpm build:types",
"test:node": "vitest run --environment node test/basic.test.ts",
"test:browser": "vitest run --environment jsdom test/browser.test.ts",
"test:deno": "deno test --allow-read test/deno/",
"test": "pnpm test:node",
"test:all": "pnpm test:node && pnpm test:browser && pnpm test:deno",
"test:coverage": "vitest run --coverage",
"dev": "vite",
"preview": "vite preview",
"typecheck": "tsc --noEmit --skipLibCheck",
"clean": "rm -rf dist"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nk2028/opencc-js.git"
},
"author": "The nk2028 Project",
"keywords": [
"opencc",
"Chinese",
"unicode",
"Chinese Language",
"Simplified Chinese",
"Traditional Chinese",
"chinese-language",
"chinese-characters",
"traditional-chinese",
"simplified-chinese"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/nk2028/opencc-js/issues"
},
"homepage": "https://github.com/nk2028/opencc-js#readme",
"devDependencies": {
"@types/node": "^22.14.1",
"@vitest/browser": "^3.1.1",
"@vitest/coverage-v8": "^3.1.1",
"chai": "~4.3.10",
"jsdom": "^26.1.0",
"opencc-data": "~1.0.8",
"rollup-plugin-generate-package-json": "^3.2.0",
"ts-node": "^10.9.2",
"typescript": "^5.8.3",
"vite": "^6.2.6",
"vitest": "^3.1.1"
},
"packageManager": "pnpm@10.8.1+sha512.c50088ba998c67b8ca8c99df8a5e02fd2ae2e2b29aaf238feaa9e124248d3f48f9fb6db2424949ff901cffbb5e0f0cc1ad6aedb602cd29450751d11c35023677"
}