mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 19:03:58 +00:00
fix
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
||||||
function adjustFile(file) {
|
function adjustRootPackageJson(file) {
|
||||||
const json = JSON.parse(fs.readFileSync(file, { encoding: 'utf-8' }));
|
const json = JSON.parse(fs.readFileSync(file, { encoding: 'utf-8' }));
|
||||||
json.workspaces.push('app');
|
json.workspaces.push('app');
|
||||||
fs.writeFileSync(file, JSON.stringify(json, null, 2), 'utf-8');
|
fs.writeFileSync(file, JSON.stringify(json, null, 2), 'utf-8');
|
||||||
}
|
}
|
||||||
|
|
||||||
adjustFile('app/package.json');
|
adjustRootPackageJson('package.json');
|
||||||
|
|||||||
Reference in New Issue
Block a user