added app to workspace when building electron app

This commit is contained in:
SPRINX0\prochazka
2024-11-13 13:27:52 +01:00
parent 370bd92518
commit 2f9209a92d
6 changed files with 23 additions and 1 deletions

9
adjustAppPackageJson.js Normal file
View File

@@ -0,0 +1,9 @@
const fs = require('fs');
function adjustFile(file) {
const json = JSON.parse(fs.readFileSync(file, { encoding: 'utf-8' }));
json.workspaces.push('app');
fs.writeFileSync(file, JSON.stringify(json, null, 2), 'utf-8');
}
adjustFile('app/package.json');