Skip to content

Commit 02a62ff

Browse files
committed
fix(addon-verify): await files writing
1 parent 3ad74f7 commit 02a62ff

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/generators/addon-verify/index.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,12 @@ export default {
8282

8383
await mkdir(join(output, folderName), { recursive: true });
8484

85-
files.forEach(async ({ name, content }) => {
86-
await writeFile(join(output, folderName, name), content);
87-
});
85+
for await (const file of files) {
86+
await writeFile(
87+
join(output, folderName, file.name),
88+
file.content
89+
);
90+
}
8891
}
8992

9093
return files;

0 commit comments

Comments
 (0)