/
package.json
81 lines (81 loc) · 2.1 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
{
"name": "nodejieba",
"description": "chinese word segmentation for node",
"version": "2.6.0",
"author": "Yanyi Wu <i@yanyiwu.com>",
"license": "MIT",
"maintainers": [
"Yanyi Wu <i@yanyiwu.com>"
],
"repository": {
"type": "git",
"url": "http://github.com/yanyiwu/nodejieba.git"
},
"keywords": [
"chinese",
"segment",
"cppjieba",
"jieba",
"中文分词",
"结巴分词"
],
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"typings": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.mjs",
"default": "./dist/index.mjs"
}
},
"engines": {
"node": ">= 16"
},
"files": [
"deps",
"dist",
"dict",
"lib",
"binding.gyp"
],
"binary": {
"module_name": "nodejieba",
"module_path": "./build/Release/",
"host": "https://github.com/yanyiwu/nodejieba/releases/download/",
"remote_path": "v{version}",
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz"
},
"scripts": {
"binary:build": "node-gyp configure && node-pre-gyp build",
"binary:rebuild": "node-pre-gyp rebuild",
"binary:pack": "node-pre-gyp package",
"binary:release": "node-pre-gyp-github publish --release",
"build": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf build/ dist/",
"test": "vitest",
"test:benchmark": "vitest bench",
"test:coverage": "vitest --coverage",
"install": "node-pre-gyp install --fallback-to-build",
"prepublishOnly": "pnpm clean && pnpm build"
},
"packageManager": "pnpm@8.5.1",
"dependencies": {
"@mapbox/node-pre-gyp": "^1.0.10",
"node-addon-api": "^6.1.0",
"node-gyp": "^9.3.1"
},
"devDependencies": {
"@types/node": "^20.2.4",
"@vitest/coverage-c8": "^0.31.1",
"esbuild": "^0.17.19",
"node-pre-gyp-github": "^1.4.4",
"rimraf": "^5.0.1",
"rollup": "^3.23.0",
"rollup-plugin-dts": "^5.3.0",
"rollup-plugin-esbuild": "^5.0.0",
"typescript": "^5.0.4",
"vitest": "^0.31.1"
}
}