mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-18 19:54:17 +01:00
fix: use execFileSync instead of execSync in generateLangium
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
import { execSync } from 'child_process';
|
import { execFileSync } from 'child_process';
|
||||||
|
|
||||||
export function generateLangium() {
|
export function generateLangium() {
|
||||||
execSync(`pnpm --prefix ${process.cwd()}/packages/parser exec langium generate`);
|
execFileSync('pnpm', [
|
||||||
|
'--prefix',
|
||||||
|
`${process.cwd()}/packages/parser`,
|
||||||
|
'exec',
|
||||||
|
'langium',
|
||||||
|
'generate',
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user