try to fix build

This commit is contained in:
SPRINX0\prochazka
2024-11-13 14:34:38 +01:00
parent 74bae65e32
commit 9deaa89f21
2 changed files with 4 additions and 4 deletions

View File

@@ -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');