mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-01 05:09:34 +02:00
build: build .langium
file using generate
from langium-cli
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
import { execFileSync } from 'child_process';
|
||||
import { generate } from 'langium-cli';
|
||||
|
||||
export function generateLangium() {
|
||||
execFileSync('pnpm', [
|
||||
'--prefix',
|
||||
`${process.cwd()}/packages/parser`,
|
||||
'exec',
|
||||
'langium',
|
||||
'generate',
|
||||
]);
|
||||
export async function generateLangium() {
|
||||
await generate({ file: `./packages/parser/langium-config.json` });
|
||||
}
|
||||
|
9
.build/langium-cli.d.ts
vendored
Normal file
9
.build/langium-cli.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
declare module 'langium-cli' {
|
||||
export interface GenerateOptions {
|
||||
file?: string;
|
||||
mode?: 'development' | 'production';
|
||||
watch?: boolean;
|
||||
}
|
||||
|
||||
export function generate(options: GenerateOptions): Promise<boolean>;
|
||||
}
|
Reference in New Issue
Block a user