mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 12:13:57 +00:00
16 lines
445 B
JavaScript
16 lines
445 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;
|
|
}
|
|
if (process.arch == 'arm64') {
|
|
delete json.optionalDependencies.oracledb;
|
|
}
|
|
fs.writeFileSync(file, JSON.stringify(json, null, 2), 'utf-8');
|
|
}
|
|
|
|
adjustFile('packages/api/package.json');
|
|
adjustFile('app/package.json');
|