chore: Cleanup rules

This commit is contained in:
Sidharth Vinod
2024-06-30 01:29:28 +05:30
parent 1fad9e6eef
commit d9a12997ce
3 changed files with 14 additions and 10 deletions

View File

@@ -56,7 +56,9 @@ const handler = (e) => {
const main = async () => {
await generateLangium();
await mkdir('stats').catch(() => {});
await mkdir('stats').catch(() => {
// Ignore error if directory already exists
});
const packageNames = Object.keys(packageOptions) as (keyof typeof packageOptions)[];
// it should build `parser` before `mermaid` because it's a dependency
for (const pkg of packageNames) {