mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
fix
This commit is contained in:
@@ -5,6 +5,7 @@ const volatilePackages = require('./volatilePackages');
|
|||||||
const apiPackageJson = JSON.parse(fs.readFileSync(`packages/api/package.json`, { encoding: 'utf-8' }));
|
const apiPackageJson = JSON.parse(fs.readFileSync(`packages/api/package.json`, { encoding: 'utf-8' }));
|
||||||
|
|
||||||
const dependencies = {};
|
const dependencies = {};
|
||||||
|
const optionalDependencies = {};
|
||||||
for (const pkg of volatilePackages) {
|
for (const pkg of volatilePackages) {
|
||||||
if (pkg == 'msnodesqlv8' && process.platform != 'win32') {
|
if (pkg == 'msnodesqlv8' && process.platform != 'win32') {
|
||||||
continue;
|
continue;
|
||||||
@@ -18,4 +19,15 @@ for (const pkg of volatilePackages) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.writeFileSync(`${directory}/package.json`, JSON.stringify({ dependencies }, null, 2), 'utf-8');
|
fs.writeFileSync(
|
||||||
|
`${directory}/package.json`,
|
||||||
|
JSON.stringify(
|
||||||
|
{
|
||||||
|
dependencies,
|
||||||
|
optionalDependencies,
|
||||||
|
},
|
||||||
|
null,
|
||||||
|
2
|
||||||
|
),
|
||||||
|
'utf-8'
|
||||||
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user