Skip to content

Commit dbc2bfc

Browse files
committed
Be more selective on binary file pruning
1 parent 52356d7 commit dbc2bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/prunebinaries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ let re = new RegExp(nodbUtil.BINARY_FILE);
4242
try {
4343
let f = fs.readdirSync(dir);
4444
for (let i = 0; i < f.length; i++) {
45-
if (!f[i].match(re)) {
45+
if (!f[i].match(re) && (f[i].match(/oracledb.*\.node(-buildinfo.txt)*/))) {
4646
fs.unlinkSync(dir + '/' + f[i]);
4747
}
4848
}

0 commit comments

Comments
 (0)