feat: include exe and updated filepath

This commit is contained in:
Guy C
2025-03-14 01:46:25 +00:00
parent 051ef02011
commit 5778b3145d
2 changed files with 1 additions and 1 deletions

BIN
wacc-compiler Executable file

Binary file not shown.

View File

@@ -40,7 +40,7 @@ function generateErrors(code, filePath) {
let output; let output;
try { try {
const waccExePath = `${__dirname}/wacc-compiler`; const waccExePath = `${__dirname}/../wacc-compiler`;
output = execSync(`${waccExePath} ${tmpFilePath}`, { encoding: 'utf8', stdio: 'pipe' }); output = execSync(`${waccExePath} ${tmpFilePath}`, { encoding: 'utf8', stdio: 'pipe' });
} catch (err) { } catch (err) {
console.log("Error running compiler"); console.log("Error running compiler");