dbgate/adjustPackageJson.js
Jan Prochazka f7ada698e4 fix
2022-08-07 10:04:32 +02:00

13 lines
361 B
JavaScript

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('packages/api/package.json');
adjustFile('app/package.json');