diff --git a/scripts/generate.ts b/scripts/generate.ts index a2b129c..25914cd 100644 --- a/scripts/generate.ts +++ b/scripts/generate.ts @@ -23,13 +23,11 @@ if (!fs.existsSync(generateFolder)) { fs.mkdirSync(generateFolder); } -const promises = [rulesGenerator, configGenerator].map( - (generator) => async () => { - generator.setRulesGrouping(RulesGrouping.SCOPE); - await generator.generateRules(generateFolder); - generator.setRulesGrouping(RulesGrouping.CATEGORY); - await generator.generateRules(generateFolder); - } -); +const promises = [rulesGenerator, configGenerator].map(async (generator) => { + generator.setRulesGrouping(RulesGrouping.SCOPE); + await generator.generateRules(generateFolder); + generator.setRulesGrouping(RulesGrouping.CATEGORY); + await generator.generateRules(generateFolder); +}); await Promise.all(promises);