mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-26 21:25:59 +00:00
try to fix build
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
const fs = require('fs');
|
||||
|
||||
function adjustRootPackageJson(file) {
|
||||
function adjustAppPackageJson(file) {
|
||||
const json = JSON.parse(fs.readFileSync(file, { encoding: 'utf-8' }));
|
||||
json.workspaces.push('app');
|
||||
json.workspaces = ['../packages/*'];
|
||||
fs.writeFileSync(file, JSON.stringify(json, null, 2), 'utf-8');
|
||||
}
|
||||
|
||||
adjustRootPackageJson('package.json');
|
||||
adjustAppPackageJson('app/package.json');
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
"build:filterparser": "yarn workspace dbgate-filterparser build",
|
||||
"build:tools": "yarn workspace dbgate-tools build",
|
||||
"build:lib": "yarn build:sqltree && yarn build:tools && yarn build:filterparser && yarn build:datalib",
|
||||
"build:app": "yarn plugins:copydist && cd app && yarn build",
|
||||
"build:app": "yarn plugins:copydist && cd app && yarn install && yarn build",
|
||||
"build:api": "yarn workspace dbgate-api build",
|
||||
"build:web": "yarn workspace dbgate-web build",
|
||||
"build:plugins:frontend": "workspaces-run --only=\"dbgate-plugin-*\" -- yarn build:frontend",
|
||||
|
||||
Reference in New Issue
Block a user