A little fix in build script

This commit is contained in:
Pavel Murygin 2023-02-08 19:19:59 +04:00
parent f8eb751983
commit 8d27bc609b

View File

@ -11,9 +11,9 @@ import { replaceCodePlugin } from 'vite-plugin-replace';
const require = createRequire(import.meta.url);
const getWorkerScriptPathOrDie = () => {
const scriptPath = path.resolve('../../core/dist/marine/worker-script/index.js');
const scriptPath = path.resolve('../../core/js-peer/dist/marine/worker-script/index.js');
if (!fs.existsSync(scriptPath)) {
console.error();
console.error('Worker script not found, looking at: ' + scriptPath);
process.exit(1);
}