We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 619d3c2 commit 7d3c431Copy full SHA for 7d3c431
1 file changed
src/build/mdn-comments.ts
@@ -89,7 +89,7 @@ export async function generateDescriptions(): Promise<Record<string, string>> {
89
try {
90
const indexPaths = await walkDirectory(basePath);
91
92
- for (const fileURL of indexPaths) {
+ const promises = indexPaths.map(async (fileURL) => {
93
94
const content = await fs.readFile(fileURL, "utf-8");
95
@@ -110,7 +110,10 @@ export async function generateDescriptions(): Promise<Record<string, string>> {
110
} catch (error) {
111
console.warn(`Skipping ${fileURL.href}: ${error}`);
112
}
113
- }
+ });
114
+
115
+ // Wait for all file processing to finish
116
+ await Promise.all(promises);
117
118
console.error("Error generating API descriptions:", error);
119
0 commit comments