Skip to content

Commit 13c725e

Browse files
committed
feat: Remove install script
1 parent 6c29f13 commit 13c725e

6 files changed

Lines changed: 217 additions & 207 deletions

File tree

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"sentry"
1717
],
1818
"scripts": {
19-
"install": "node scripts/check-build.mjs",
2019
"lint": "yarn lint:eslint && yarn lint:clang",
2120
"lint:eslint": "eslint . --format stylish",
2221
"lint:clang": "node scripts/clang-format.mjs",
@@ -25,15 +24,14 @@
2524
"fix:clang": "node scripts/clang-format.mjs --fix",
2625
"build": "yarn clean && yarn build:lib && yarn build:bindings:configure && yarn build:bindings",
2726
"build:lib": "tsc",
27+
"build:copy-binary": "node -e \"import { copyBinary } from './lib/index.js'; copyBinary();\"",
2828
"build:bindings:configure": "node-gyp configure",
2929
"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",
3232
"build:tarball": "npm pack",
3333
"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"
3735
},
3836
"engines": {
3937
"node": ">=18"

scripts/binaries.mjs

Lines changed: 0 additions & 18 deletions
This file was deleted.

scripts/check-build.mjs

Lines changed: 0 additions & 55 deletions
This file was deleted.

scripts/copy-target.mjs

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)