Skip to content

Commit

Permalink
format files in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jul 7, 2023
1 parent b307fb0 commit 613b4c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ async function buildNodePackage({packageDir, pkg}) {

process.stdout.write(adjustToTerminalWidth(`${pkg.name}\n`));

for (const file of files) {
await buildFile(file);
}
await Promise.all(files.map(file => buildFile(file)));

assert.ok(
fs.existsSync(path.resolve(packageDir, pkg.main)),
Expand Down

0 comments on commit 613b4c6

Please sign in to comment.