forked from Brooooooklyn/pinyin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
123 lines (123 loc) · 3.49 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
120
121
122
123
{
"name": "@napi-rs/pinyin",
"version": "1.6.2",
"description": "Fastest Chinese words to pinyin library",
"main": "index.js",
"repository": "git@github.com:Brooooooklyn/pinyin.git",
"license": "MIT",
"keywords": [
"napi-rs",
"NAPI",
"N-API",
"Rust",
"node-addon",
"node-addon-api",
"pinyin",
"jieba",
"拼音",
"汉语",
"汉字",
"中文"
],
"files": ["index.d.ts", "index.js", "src/**", "build.rs", "Cargo.toml", "postinstall.js"],
"napi": {
"name": "pinyin",
"triples": {
"defaults": true,
"additional": [
"armv7-unknown-linux-gnueabihf",
"x86_64-unknown-linux-musl",
"i686-pc-windows-msvc",
"aarch64-unknown-linux-gnu",
"aarch64-apple-darwin",
"aarch64-linux-android",
"x86_64-unknown-freebsd",
"aarch64-pc-windows-msvc",
"aarch64-unknown-linux-musl"
]
}
},
"engines": {
"node": ">= 10.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"scripts": {
"artifacts": "napi artifacts",
"bench": "node -r ts-node/register/transpile-only benchmark/bench.ts",
"build": "napi build --platform --release",
"build:debug": "napi build --platform",
"format": "run-p format:md format:json format:yaml format:source format:rs",
"format:md": "prettier --parser markdown --write \"./**/*.md\"",
"format:json": "prettier --parser json --write \"./**/*.json\"",
"format:rs": "cargo fmt",
"format:source": "prettier --config ./package.json --write \"./**/*.{js,ts}\"",
"format:yaml": "prettier --parser yaml --write \"./**/*.{yml,yaml}\"",
"lint": "eslint . -c ./.eslintrc.yml",
"prepublishOnly": "napi prepublish -t npm",
"postinstall": "node postinstall.js",
"test": "ava",
"version": "napi version && conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
"postpublish": "pinst --enable"
},
"devDependencies": {
"@napi-rs/cli": "^1.1.0",
"@types/node": "^16.4.0",
"@types/pinyin": "^2.8.3",
"@typescript-eslint/eslint-plugin": "^4.28.4",
"@typescript-eslint/parser": "^4.28.4",
"ava": "^3.15.0",
"benny": "^3.6.15",
"chalk": "^4.1.1",
"conventional-changelog-cli": "^2.1.1",
"eslint": "^7.31.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-sonarjs": "^0.9.1",
"husky": "7",
"lint-staged": "^11.0.1",
"nodejieba": "^2.5.2",
"npm-run-all": "^4.1.5",
"pinst": "^2.1.6",
"pinyin": "^2.10.2",
"prettier": "^2.3.2",
"ts-node": "^10.1.0",
"typescript": "^4.3.5"
},
"dependencies": {
"@node-rs/helper": "^1.2.0"
},
"lint-staged": {
"*.@(js|ts|tsx)": ["prettier --write", "eslint -c .eslintrc.yml --fix"],
"*.@(yml|yaml)": ["prettier --parser yaml --write"],
"*.md": ["prettier --parser markdown --write"],
"*.json": ["prettier --parser json --write"]
},
"ava": {
"require": ["ts-node/register/transpile-only"],
"extensions": ["ts"],
"environmentVariables": {
"TS_NODE_PROJECT": "./tsconfig.json"
}
},
"prettier": {
"printWidth": 120,
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "always",
"parser": "typescript"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/Brooooooklyn"
}
}