Skip to content

Commit ffdfe06

Browse files
Update src/generators/legacy-json/index.mjs
Co-authored-by: Augustin Mauroy <[email protected]>
1 parent ee13845 commit ffdfe06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/generators/legacy-json/index.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ export default {
4949
return section;
5050
};
5151

52-
for (const node of headNodes) {
52+
await Promise.all(headNodes.map(async node => {
5353
// Get the json for the node's section
5454
const section = processModuleNodes(node);
55-
55+
5656
// Write it to the output file
5757
await writeFile(
5858
join(output, `${node.api}.json`),
5959
JSON.stringify(section),
6060
'utf8'
6161
);
62-
}
62+
}));
6363

6464
return generatedValues;
6565
},

0 commit comments

Comments
 (0)