File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 32
32
"build:dev" : " yarn clean && yarn build:bindings:configure && yarn build" ,
33
33
"build:tarball" : " npm pack" ,
34
34
"clean" : " node-gyp clean && rm -rf lib && rm -rf build" ,
35
- "test" : " node ./test/prepare.mjs && vitest run --silent=false --disable-console-intercept"
35
+ "test" : " yarn test:install && node ./test/prepare.mjs && vitest run --silent=false --disable-console-intercept" ,
36
+ "test:install" : " ALWAYS_THROW=true yarn install"
36
37
},
37
38
"engines" : {
38
39
"node" : " >=18"
Original file line number Diff line number Diff line change @@ -39,7 +39,11 @@ if (fs.existsSync(binaries.target)) {
39
39
console . log ( 'Precompiled binary found, skipping build from source.' ) ;
40
40
} catch ( e ) {
41
41
console . log ( 'Precompiled binary found but failed loading' ) ;
42
- console . log ( e ) ;
42
+ if ( process . env . ALWAYS_THROW ) {
43
+ throw e ;
44
+ } else {
45
+ console . log ( e ) ;
46
+ }
43
47
try {
44
48
recompileFromSource ( ) ;
45
49
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments