chore: updated check for js sandbox libs

This commit is contained in:
Anoop M D 2024-08-27 14:20:50 +05:30
parent 9e5148f032
commit 5f6a5f59b1

View File

@ -3,7 +3,7 @@ const path = require('path');
const isDev = require('electron-is-dev'); const isDev = require('electron-is-dev');
if (isDev) { if (isDev) {
if (!fs.existsSync('./src/sandbox/bundle-browser-rollup.js')) { if(!fs.existsSync(path.join(__dirname, '../../bruno-js/src/sandbox/bundle-browser-rollup.js'))) {
console.log('JS Sandbox libraries have not been bundled yet'); console.log('JS Sandbox libraries have not been bundled yet');
console.log('Please run the below command \nnpm run sandbox:bundle-libraries --workspace=packages/bruno-js'); console.log('Please run the below command \nnpm run sandbox:bundle-libraries --workspace=packages/bruno-js');
throw new Error('JS Sandbox libraries have not been bundled yet'); throw new Error('JS Sandbox libraries have not been bundled yet');