remove msnodesqlv8 from mac+linux build

This commit is contained in:
Jan Prochazka
2022-08-07 10:02:11 +02:00
parent 7c80ca1374
commit bc4c146389
4 changed files with 19 additions and 0 deletions

12
adjustPackageJson.js Normal file
View File

@@ -0,0 +1,12 @@
const fs = require('fs');
function adjustFile(file) {
const json = JSON.parse(fs.readFileSync(file, { encoding: 'utf-8' }));
if (process.platform != 'win32') {
delete json.optionalDependencies.msnodesqlv8;
}
fs.writeFileSync(file, JSON.stringify(json, null, 2), 'utf-8');
}
adjustFile('package.json');
adjustFile('app/package.json');