DEV Community

Discussion on: πŸš€ Just released ultra-runner 2.0.0! Ultra fast script runner and build tool, with support for lerna, yarn and pnpm monorepos.

Collapse
 
santypk4 profile image
Sam

What does it make it so fast ?

Collapse
 
sirseanofloxley profile image
Sean Allin Newell

Ultra looks like it does a few clever things, but the crux is:

  • parallel everything it can
  • create a runtime context stripped of excess (it hijacks npx/npm run/yarn run/shell operators (&&/||) to minimize overhead)
  • parse package.json scripts ahead of time, to analyze best execution plan
Collapse
 
folke profile image
Folke Lemaitre

Thanks for jumping in here :)

It does indeed all of the above and has some special handling for running build scripts. It keeps track of file changes accross your reporistory and will only actually build a package when really needed.