-
-
Notifications
You must be signed in to change notification settings - Fork 214
/
package.json
243 lines (243 loc) · 7.25 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
{
"name": "zeromq",
"version": "6.2.0",
"description": "Next-generation ZeroMQ bindings for Node.js",
"main": "lib/index.js",
"type": "commonjs",
"types": "lib/index.d.ts",
"typesVersions": {
"<=3.7": {
"lib/*": [
"lib/ts3.7/*"
]
}
},
"gypfile": true,
"repository": {
"type": "git",
"url": "https://github.com/zeromq/zeromq.js.git"
},
"homepage": "http://zeromq.github.io/zeromq.js/",
"dependencies": {
"@aminya/cmake-ts": "^0.3.0-aminya.7",
"node-addon-api": "^8.3.0"
},
"devDependencies": {
"@types/benchmark": "~2.1.5",
"@types/chai": "^4",
"@types/eslint": "~9.6.1",
"@types/fs-extra": "^11.0.4",
"@types/gh-pages": "~6.1.0",
"@types/mocha": "^10.0.10",
"@types/node": "^22.10.2",
"@types/proper-lockfile": "^4.1.4",
"@types/semver": "^7.5.8",
"@types/shelljs": "^0.8.15",
"@types/which": "^3.0.4",
"benchmark": "^2.1.4",
"chai": "^4",
"cross-env": "^7.0.3",
"downlevel-dts": "^0.11.0",
"electron": "^33.2.1",
"electron-mocha": "^13.0.1",
"eslint": "^8.57.1",
"eslint-config-atomic": "^1.22.1",
"eslint-plugin-prettier": "^5.2.1",
"execa": "^9.5.2",
"fs-extra": "^11.2.0",
"gh-pages": "^6.2.0",
"minify-all-cli": "^1.0.13",
"mocha": "^11.0.1",
"npm-run-all2": "^7.0.2",
"prebuildify": "^6.0.1",
"prettier": "^3.4.2",
"proper-lockfile": "^4.1.2",
"rimraf": "^6.0.1",
"semver": "^7.6.3",
"shx": "^0.3.4",
"ts-node": "~10.9.2",
"typedoc": "^0.27.6",
"typescript": "~4.9.5",
"which": "^5.0.0"
},
"pnpm": {
"overrides": {
"typescript": "~4.9.5",
"node-gyp": "10.0.1"
},
"patchedDependencies": {
"electron-mocha": "patches/electron-mocha.patch"
}
},
"engines": {
"node": ">= 10",
"pnpm": ">= 9"
},
"files": [
"CHANGELOG.md",
"LICENSE.txt",
"LICENSE_MPL-2.0.txt",
"README.md",
"CMakeLists.txt",
"vcpkg.json",
"*.d.ts",
"*.js",
"lib",
"src",
"build",
"script",
"tsconfig.json"
],
"scripts": {
"install": "node ./script/install.js",
"clean": "rimraf ./build ./prebuilds ./staging && run-p clean.lib clean.temp",
"clean.lib": "rimraf ./lib/",
"clean.temp": "rimraf ./tmp && shx mkdir -p ./tmp",
"build.js": "run-s clean.lib && tsc -p ./src/tsconfig.json && run-s build.downlevel",
"build.downlevel": "downlevel-dts ./lib ./lib/ts3.7",
"build.doc": "typedoc --options ./typedoc.json && minify-all -s docs-unminified -d docs --jsCompressor terser && rimraf docs-unminified",
"deploy.doc": "run-s build.doc && gh-pages --dist \"./docs\"",
"build.native": "cmake-ts nativeonly",
"build.native.debug": "cross-env npm_config_zmq_enable_sanitizer_undefined=true cmake-ts dev-os-only",
"build": "run-p build.js build.native",
"build.debug": "run-s build.js build.native.debug",
"test": "run-s test.unit",
"test.debug": "run-s test.unit.debug",
"test.unit": "run-s clean.temp build && cross-env INCLUDE_COMPAT_TESTS=true mocha ./test/unit/*-test.ts ./test/unit/compat/*-test.ts",
"test.unit.debug": "run-s clean.temp build.debug && cross-env INCLUDE_COMPAT_TESTS=true mocha ./test/unit/*-test.ts ./test/unit/compat/*-test.ts",
"test.unit.nogc": "run-s clean.temp build && cross-env SKIP_GC_TESTS=true mocha",
"test.electron.main": "run-s clean.temp build && cross-env INCLUDE_COMPAT_TESTS=true SKIP_GC_TESTS=true electron-mocha ./test/unit/*-test.ts ./test/unit/compat/*-test.ts",
"test.electron.renderer": "run-s build && cross-env INCLUDE_COMPAT_TESTS=true SKIP_GC_TESTS=true electron-mocha --renderer ./test/unit/*-test.ts ./test/unit/compat/*-test.ts",
"test.smoke": "bash ./script/smoke-test.bash",
"format": "run-s format.prettier format.clang-format",
"format.prettier": "prettier -l --cache --cache-location ./.cache/prettier --write .",
"format.clang-format": "clang-format -i -style=file ./src/*.cc ./src/*.h ./src/util/*.h",
"lint-test.eslint": "eslint ./**/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/",
"lint.eslint": "pnpm run lint-test.eslint --fix",
"lint.tsc": "tsc --noEmit -p ./src/tsconfig.json",
"lint.tsc-test": "tsc --noEmit -p ./test/tsconfig.json",
"lint.clang-tidy": "git ls-files --exclude-standard | grep -E '\\.(cpp|hpp|c|cc|cxx|hxx|h|ixx)$' | xargs -n 1 -P $(nproc) clang-tidy",
"lint": "run-p lint.tsc-test lint.tsc lint.eslint format",
"lint-test": "run-s lint-test.eslint",
"bench": "node --expose-gc test/bench",
"prepare": "pnpm run build.js",
"bump": "pnpx npm-check-updates -u -x typescript,eslint,chai,@types/chai && pnpx typesync"
},
"cmake-ts": {
"nodeAPI": "node-addon-api",
"configurations": [
{
"name": "linux-x64",
"os": "linux",
"arch": "x64",
"runtime": "node",
"runtimeVersion": "12.22.12"
},
{
"name": "linux-x64-dev",
"dev": true,
"buildType": "Debug",
"os": "linux",
"arch": "x64",
"runtime": "node",
"runtimeVersion": "12.22.12"
},
{
"name": "darwin-arm64-dev",
"dev": true,
"buildType": "Debug",
"os": "darwin",
"arch": "arm64",
"runtime": "node",
"runtimeVersion": "12.22.12"
},
{
"name": "windows-x64-dev",
"dev": true,
"buildType": "Debug",
"os": "win32",
"arch": "x64",
"runtime": "node",
"runtimeVersion": "12.22.12"
},
{
"name": "windows-x64",
"os": "win32",
"arch": "x64",
"runtime": "node",
"runtimeVersion": "12.22.12"
},
{
"name": "windows-x86",
"os": "win32",
"arch": "ia32",
"runtime": "node",
"runtimeVersion": "12.22.12"
},
{
"name": "darwin-x64",
"os": "darwin",
"arch": "x64",
"runtime": "node",
"runtimeVersion": "12.22.12"
},
{
"name": "darwin-arm64",
"os": "darwin",
"arch": "arm64",
"runtime": "node",
"runtimeVersion": "12.22.12"
},
{
"name": "linux-x64-electron",
"os": "linux",
"arch": "x64",
"runtime": "electron",
"runtimeVersion": "12.22.12"
},
{
"name": "windows-x64-electron",
"os": "win32",
"arch": "x64",
"runtime": "electron",
"runtimeVersion": "12.22.12"
},
{
"name": "darwin-x64-electron",
"os": "darwin",
"arch": "x64",
"runtime": "electron",
"runtimeVersion": "12.22.12"
},
{
"name": "darwin-arm64-electron",
"os": "darwin",
"arch": "arm64",
"runtime": "electron",
"runtimeVersion": "12.22.12"
}
],
"targetDirectory": "build",
"buildType": "Release",
"projectName": "addon"
},
"keywords": [
"zeromq",
"zmq",
"0mq",
"ømq",
"libzmq",
"zmtp",
"message",
"messaging",
"queue",
"async",
"sockets",
"native",
"binding",
"addon",
"napi"
],
"license": "MIT AND MPL-2.0",
"author": "Amin Yahyaabadi <[email protected]>, Rolf Timmermans <[email protected]>"
}