generated from napi-rs/package-template
/
package.json
126 lines (126 loc) · 3.23 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
124
125
126
{
"name": "snappy",
"version": "7.2.2",
"description": "Fastest Snappy compression library in Node.js",
"main": "index.js",
"repository": "https://github.com/Brooooooklyn/snappy",
"license": "MIT",
"keywords": [
"snappy",
"snap",
"compression",
"compress",
"napi-rs",
"NAPI",
"N-API",
"Rust",
"Node-API",
"node-addon",
"node-addon-api"
],
"files": [
"index.d.ts",
"index.js"
],
"napi": {
"binaryName": "snappy",
"package": {
"name": "@napi-rs/snappy"
},
"triples": {
"defaults": true,
"additional": [
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-gnu",
"i686-pc-windows-msvc",
"armv7-unknown-linux-gnueabihf",
"aarch64-apple-darwin",
"aarch64-linux-android",
"arm-linux-androideabi",
"x86_64-unknown-freebsd",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc"
]
}
},
"engines": {
"node": ">= 10"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"scripts": {
"artifacts": "napi artifacts --output-dir artifacts --npm-dir ./npm",
"bench": "node -r @swc-node/register benchmark/bench.ts",
"build": "napi build --platform --release",
"build:debug": "napi build --platform",
"format": "run-p format:source format:rs format:toml",
"format:toml": "taplo format",
"format:rs": "cargo fmt",
"format:source": "prettier --config ./package.json --write .",
"lint": "eslint -c ./.eslintrc.yml .",
"prepublishOnly": "napi prepublish -t npm && esbuild --minify --outfile=index.js --allow-overwrite index.js",
"test": "ava",
"test:mem": "node ./memory-leak-detect.mjs",
"version": "napi version && conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md"
},
"devDependencies": {
"@napi-rs/cli": "^3.0.0-alpha.7",
"@swc-node/register": "^1.6.8",
"@swc/core": "^1.3.96",
"@taplo/cli": "^0.7.0",
"@types/node": "^20.8.10",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"ava": "^6.0.0",
"benny": "^3.7.1",
"chalk": "^5.3.0",
"conventional-changelog-cli": "^4.1.0",
"esbuild": "^0.20.0",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.29.0",
"husky": "^9.0.0",
"legacy-snappy": "npm:snappy@6",
"lint-staged": "^15.0.2",
"npm-run-all2": "^6.0.0",
"prettier": "^3.0.3",
"pretty-bytes": "^6.1.1",
"table": "^6.8.1",
"typescript": "^5.2.2"
},
"lint-staged": {
"*.@(js|ts|tsx)": [
"eslint -c .eslintrc.yml --fix"
],
"*.@(js|ts|tsx|yml|yaml|md|json)": [
"prettier --write"
]
},
"ava": {
"require": [
"@swc-node/register"
],
"extensions": [
"ts"
],
"timeout": "2m",
"workerThreads": false,
"environmentVariables": {
"TS_NODE_PROJECT": "./tsconfig.json"
}
},
"prettier": {
"printWidth": 120,
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "always"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/Brooooooklyn"
},
"packageManager": "yarn@4.1.1"
}