fix: use `execFileSync` instead of `execSync` in `generateLangium`

This commit is contained in:
Reda Al Sulais 2023-08-21 02:54:30 +03:00
parent 1d64549cce
commit 83e47a7216
1 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,11 @@
import { execSync } from 'child_process';
import { execFileSync } from 'child_process';
export function generateLangium() {
execSync(`pnpm --prefix ${process.cwd()}/packages/parser exec langium generate`);
execFileSync('pnpm', [
'--prefix',
`${process.cwd()}/packages/parser`,
'exec',
'langium',
'generate',
]);
}