From ba9766fbf02bbaf69993a1adb238a0e8c8e9f3a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linhart=20Luk=C3=A1=C5=A1?= Date: Tue, 17 Oct 2023 08:41:56 +0200 Subject: [PATCH] fix js build --- scripts/build-electron.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/build-electron.js b/scripts/build-electron.js index 363fdf4d2..47693b47f 100644 --- a/scripts/build-electron.js +++ b/scripts/build-electron.js @@ -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); }