Skip to content

Commit

Permalink
chore: prefer parallel build
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunny-117 committed Dec 23, 2024
1 parent 2a9c148 commit e6920f4
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,17 +274,16 @@ async function _build(
// await symlink(resolve(ctx.rootDir), nodemodulesDir).catch(() => {})
// }

// untyped
await typesBuild(ctx);

// mkdist
await mkdistBuild(ctx);

// rollup
await rollupBuild(ctx);

// copy
await copyBuild(ctx);
await Promise.all([
// untyped
typesBuild(ctx),
// mkdist
mkdistBuild(ctx),
// rollup
rollupBuild(ctx),
// copy
copyBuild(ctx),
]);

// Skip rest for stub and watch mode
if (options.stub || options.watch) {
Expand Down

0 comments on commit e6920f4

Please sign in to comment.