|
79 | 79 | "tsconfig.json"
|
80 | 80 | ],
|
81 | 81 | "scripts": {
|
82 |
| - "install": "(shx test -f ./script/build.js || run-s build.js) && cross-env npm_config_build_from_source=true aminya-node-gyp-build", |
83 |
| - "clean": "shx rm -rf ./build ./lib/ ./prebuilds ./script/*.js ./script/*.js.map ./script/*.d.ts ./script/*.tsbuildinfo", |
| 82 | + "preinstall": "run-s build.script", |
| 83 | + "install": "node-gyp-build", |
| 84 | + "prepare": "run-s build.library", |
| 85 | + "clean": "shx rm -rf ./build ./lib/ ./prebuilds", |
84 | 86 | "clean.temp": "shx rm -rf ./tmp && shx mkdir -p ./tmp && shx touch ./tmp/.gitkeep",
|
85 | 87 | "build.library.compat": "shx rm -rf ./lib/ts3.7 && downlevel-dts ./lib ./lib/ts3.7 --to=3.7",
|
86 | 88 | "build.library": "tsc -p ./src/tsconfig.json && run-s build.library.compat",
|
87 | 89 | "build.script": "tsc -p ./script/tsconfig.json",
|
88 | 90 | "build.js": "run-p build.script build.library",
|
89 | 91 | "build.doc": "typedoc --options ./typedoc.json && minify-all -s docs-raw -d docs --jsCompressor terser",
|
90 | 92 | "deploy.doc": "run-s build.doc && gh-pages --dist \"./docs\"",
|
91 |
| - "prebuild": "run-s build.js && node ./script/prebuild.js", |
| 93 | + "prebuild": "node ./script/prebuild.js", |
92 | 94 | "build.native": "node-gyp configure --release && node-gyp configure --release -- -f compile_commands_json && node-gyp build --release",
|
93 | 95 | "build.native.debug": "node-gyp configure --debug && node-gyp configure --debug -- -f compile_commands_json && cross-env CMAKE_BUILD_TYPE=Debug node-gyp build --debug",
|
94 |
| - "build": "run-s build.js build.native", |
95 |
| - "build.debug": "run-s build.js build.native.debug", |
| 96 | + "build": "run-s build.native", |
| 97 | + "build.debug": "run-s build.native.debug", |
96 | 98 | "test.deps": "cd test && pnpm install && cd ..",
|
97 | 99 | "test": "run-s test.deps build && mocha --exit",
|
98 | 100 | "test.skip_gc_tests": "run-s test.deps build.debug && cross-env SKIP_GC_TESTS=true mocha --exit",
|
|
104 | 106 | "lint.eslint": "pnpm run lint-test.eslint --fix",
|
105 | 107 | "lint": "run-p lint.eslint lint.clang-format",
|
106 | 108 | "lint-test": "run-s lint-test.eslint",
|
107 |
| - "bench": "node --expose-gc test/bench", |
108 |
| - "prepublishOnly": "pnpm run build.js" |
| 109 | + "bench": "node --expose-gc test/bench" |
109 | 110 | },
|
110 | 111 | "keywords": [
|
111 | 112 | "zeromq",
|
|
0 commit comments