|
16 | 16 | "sentry" |
17 | 17 | ], |
18 | 18 | "scripts": { |
19 | | - "install": "node scripts/check-build.mjs", |
20 | 19 | "lint": "yarn lint:eslint && yarn lint:clang", |
21 | 20 | "lint:eslint": "eslint . --format stylish", |
22 | 21 | "lint:clang": "node scripts/clang-format.mjs", |
|
25 | 24 | "fix:clang": "node scripts/clang-format.mjs --fix", |
26 | 25 | "build": "yarn clean && yarn build:lib && yarn build:bindings:configure && yarn build:bindings", |
27 | 26 | "build:lib": "tsc", |
| 27 | + "build:copy-binary": "node -e \"import { copyBinary } from './lib/index.js'; copyBinary();\"", |
28 | 28 | "build:bindings:configure": "node-gyp configure", |
29 | 29 | "build:bindings:configure:arm64": "node-gyp configure --arch=arm64 --target_arch=arm64", |
30 | | - "build:bindings": "node-gyp build && node scripts/copy-target.mjs", |
31 | | - "build:bindings:arm64": "node-gyp build --arch=arm64 && node scripts/copy-target.mjs", |
| 30 | + "build:bindings": "node-gyp build && yarn build:copy-binary", |
| 31 | + "build:bindings:arm64": "node-gyp build --arch=arm64 && yarn build:copy-binary", |
32 | 32 | "build:tarball": "npm pack", |
33 | 33 | "clean": "node-gyp clean && rm -rf lib && rm -rf build && rm -f *.tgz", |
34 | | - "test": "yarn test:install && yarn test:prepare && vitest run --poolOptions.forks.singleFork --silent=false --disable-console-intercept", |
35 | | - "test:prepare": "node ./test/prepare.mjs", |
36 | | - "test:install": "cross-env ALWAYS_THROW=true yarn install" |
| 34 | + "test": "node ./test/prepare.mjs && vitest run --poolOptions.forks.singleFork --silent=false --disable-console-intercept" |
37 | 35 | }, |
38 | 36 | "engines": { |
39 | 37 | "node": ">=18" |
|
0 commit comments