mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-24 17:03:47 +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 util = require('util');
|
||||||
const exec = util.promisify(require('child_process').exec);
|
const exec = util.promisify(require('child_process').exec);
|
||||||
|
|
||||||
|
|
||||||
async function deleteFileIfExists(filePath) {
|
async function deleteFileIfExists(filePath) {
|
||||||
try {
|
try {
|
||||||
const exists = await fs.pathExists(filePath);
|
const exists = await fs.pathExists(filePath);
|
||||||
@ -73,7 +72,7 @@ async function main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove sourcemaps
|
// Remove sourcemaps
|
||||||
await removeSourceMapFiles('packages/bruno-electron/web')
|
await removeSourceMapFiles('packages/bruno-electron/web');
|
||||||
|
|
||||||
// Run npm dist command
|
// Run npm dist command
|
||||||
console.log('Building the Electron distribution');
|
console.log('Building the Electron distribution');
|
||||||
@ -88,8 +87,7 @@ async function main() {
|
|||||||
osArg = 'linux';
|
osArg = 'linux';
|
||||||
}
|
}
|
||||||
|
|
||||||
await exec(`npm run dist-${osArg} --workspace=packages/bruno-electron`);
|
await exec(`npm run dist:${osArg} --workspace=packages/bruno-electron`);
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('An error occurred:', error);
|
console.error('An error occurred:', error);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user