fix: use `execFileSync` instead of `execSync` in `generateLangium`
This commit is contained in:
parent
1d64549cce
commit
83e47a7216
|
@ -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',
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue