Skip to content

Commit

Permalink
Update src/generators/legacy-json/index.mjs
Browse files Browse the repository at this point in the history
Co-authored-by: Augustin Mauroy <[email protected]>
  • Loading branch information
flakey5 and AugustinMauroy authored Oct 2, 2024
1 parent 1e27644 commit 1791f8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/generators/legacy-json/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ export default {
return section;
};

for (const node of headNodes) {
await Promise.all(headNodes.map(async node => {
// Get the json for the node's section
const section = processModuleNodes(node);

// Write it to the output file
await writeFile(
join(output, `${node.api}.json`),
JSON.stringify(section),
'utf8'
);
}
}));

return generatedValues;
},
Expand Down

0 comments on commit 1791f8f

Please sign in to comment.