|
17 | 17 | "url": "https://github.com/zeromq/zeromq.js.git" |
18 | 18 | }, |
19 | 19 | "dependencies": { |
20 | | - "node-gyp-build": "^4.5.0" |
| 20 | + "@types/node": "^18.11.9", |
| 21 | + "@types/shelljs": "^0.8.11", |
| 22 | + "cross-env": "^7.0.3", |
| 23 | + "node-gyp-build": "^4.5.0", |
| 24 | + "shelljs": "^0.8.5", |
| 25 | + "ts-node": "10.9" |
21 | 26 | }, |
22 | 27 | "devDependencies": { |
23 | 28 | "@gnd/typedoc": "^0.15.0-0", |
24 | 29 | "@types/chai": ">=4.3", |
25 | 30 | "@types/fs-extra": "^9.0.13", |
26 | 31 | "@types/mocha": ">=10.0", |
27 | | - "@types/node": ">=18.11", |
28 | 32 | "@types/semver": ">=7", |
29 | 33 | "@types/weak-napi": "^2.0.1", |
30 | 34 | "benchmark": ">=2", |
|
38 | 42 | "mocha": ">=10.1", |
39 | 43 | "node-addon-api": "^5.0.0", |
40 | 44 | "node-fetch": "^3.3.0", |
| 45 | + "node-gyp": "^9.3.0", |
| 46 | + "npm-run-all2": "^6.0.4", |
41 | 47 | "prebuildify": "^5.0.1", |
42 | 48 | "prettier": "^2.7.1", |
43 | 49 | "semver": ">=7", |
44 | 50 | "shx": "^0.3.4", |
45 | 51 | "tar-fs": "^2.1.1", |
46 | 52 | "ts-morph": "^16.0.0", |
47 | | - "ts-node": ">=10", |
48 | 53 | "typescript": "4.8", |
49 | 54 | "weak-napi": "^2.0.2" |
50 | 55 | }, |
|
75 | 80 | "build.js": "tsc --project tsconfig-build.json && node script/ci/downlevel-dts.js", |
76 | 81 | "build.doc": "typedoc --out docs --name zeromq.js --excludeProtected --excludePrivate --excludeNotExported --excludeExternals --externalPattern 'src/+(draft|native|compat).ts' --tsconfig tsconfig-build.json --mode file", |
77 | 82 | "prebuild": "ts-node -P ./tsconfig.json ./script/prebuild.ts", |
78 | | - "build.native": "prebuildify --napi --build-from-source", |
79 | | - "build.native.debug": "npm run build.native -- --debug", |
80 | | - "build": "npm run build.js && npm run build.native", |
81 | | - "build.debug": "npm run build.js && npm run build.native.debug", |
82 | | - "test": "npm run build.debug && mocha", |
83 | | - "lint": "sh script/lint.sh", |
| 83 | + "build.native": "node-gyp configure --release && node-gyp build --release", |
| 84 | + "build.native.debug": "cross-env CMAKE_BUILD_TYPE=Debug node-gyp configure --debug && cross-env CMAKE_BUILD_TYPE=Debug node-gyp build --debug", |
| 85 | + "build": "run-p build.js build.native", |
| 86 | + "build.debug": "run-p build.js build.native.debug", |
| 87 | + "test": "run-s build.debug && mocha", |
| 88 | + "lint.clang-format": "clang-format -i -style=file src/*.{cc,h} src/*/*.h", |
| 89 | + "lint-test.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/", |
| 90 | + "lint.eslint": "run-s lint-test.eslint -- --fix", |
| 91 | + "lint": "run-p lint.eslint lint.clang-format", |
| 92 | + "lint-test": "run-s lint-test.eslint", |
84 | 93 | "bench": "node --expose-gc test/bench" |
85 | 94 | }, |
86 | 95 | "keywords": [ |
|
0 commit comments