mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-24 08:53:30 +01:00
fix js build
This commit is contained in:
parent
b28f7625e4
commit
ba9766fbf0
@ -3,7 +3,6 @@ const fs = require('fs-extra');
|
||||
const util = require('util');
|
||||
const exec = util.promisify(require('child_process').exec);
|
||||
|
||||
|
||||
async function deleteFileIfExists(filePath) {
|
||||
try {
|
||||
const exists = await fs.pathExists(filePath);
|
||||
@ -73,7 +72,7 @@ async function main() {
|
||||
}
|
||||
|
||||
// Remove sourcemaps
|
||||
await removeSourceMapFiles('packages/bruno-electron/web')
|
||||
await removeSourceMapFiles('packages/bruno-electron/web');
|
||||
|
||||
// Run npm dist command
|
||||
console.log('Building the Electron distribution');
|
||||
@ -88,8 +87,7 @@ async function main() {
|
||||
osArg = 'linux';
|
||||
}
|
||||
|
||||
await exec(`npm run dist-${osArg} --workspace=packages/bruno-electron`);
|
||||
|
||||
await exec(`npm run dist:${osArg} --workspace=packages/bruno-electron`);
|
||||
} catch (error) {
|
||||
console.error('An error occurred:', error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user