Apply suggestions from code review

Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
Sidharth Vinod
2024-06-30 14:47:03 +05:30
committed by GitHub
parent d8d608fd99
commit 8b8c0dd57c
2 changed files with 2 additions and 4 deletions

View File

@@ -56,9 +56,7 @@ const handler = (e) => {
const main = async () => {
await generateLangium();
await mkdir('stats').catch(() => {
// Ignore error if directory already exists
});
await mkdir('stats', {recursive: true});
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) {