mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02: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() {
|
||||
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