build: build .langium file using generate from langium-cli

This commit is contained in:
Reda Al Sulais
2023-08-22 13:38:23 +03:00
parent fc96ebefd4
commit 8d0ca2c876
7 changed files with 20 additions and 13 deletions

View File

@@ -79,7 +79,7 @@ function sendEventsToAll() {
}
async function createServer() {
generateLangium();
await generateLangium();
handleFileChange();
const app = express();
chokidar
@@ -93,7 +93,7 @@ async function createServer() {
return;
}
if (/\.langium$/.test(path)) {
generateLangium();
await generateLangium();
}
console.log(`${path} changed. Rebuilding...`);
handleFileChange();