Skip to content

Commit 826032c

Browse files
authored
fix: do not delete for mismatch (#830)
1 parent ffb810b commit 826032c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/prebuild.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ if (process.env.npm_config_build_from_source === 'true') {
2727
// Check whether the correct prebuilt files exist
2828
console.log('\x1b[32m> Checking prebuilds...\x1b[0m');
2929
if (!fs.existsSync(PREBUILD_DIR)) {
30-
console.log(`\x1b[33m> Removing prebuilds and rebuilding because directory ${PREBUILD_DIR} does not exist\x1b[0m`);
31-
fs.rmSync(PREBUILDS_ROOT, { recursive: true, force: true });
30+
console.log(`\x1b[33m> Rebuilding because directory ${PREBUILD_DIR} does not exist\x1b[0m`);
3231
process.exit(1);
3332
}
3433

0 commit comments

Comments
 (0)