Skip to content

Conversation

CommandMC
Copy link

Bringing a lot of things back up to the latest and greatest in JS land

Performance differences (measured on a rather old Thinkpad T430, so your times will probably be faster):

  • Package install time ((yarn,pnpm) install): 17.46s -> 2.4s
  • Build time (build script): 6.9s -> 11ms
  • Test time: (test script): 6.34s -> 1.56s

@CommandMC CommandMC force-pushed the build-system-overhaul branch 3 times, most recently from 9c8d6da to 9c881c3 Compare May 13, 2024 13:10
Copy link
Member

@bgianfo bgianfo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CommandMC
Copy link
Author

CommandMC added 4 commits May 18, 2024 12:02
esbuild has built-in TypeScript support (so no more ts-node required)
and allows us to use any Node version (as it transforms newer JS
features into older syntax)
It is also just a great deal faster than tsc
Just like esbuild, Vitest supports TypeScript out of the box, which
means we can completely get rid of ts-node
Yarn 1, what the project used before, has been deprecated for a while.
Updating to Yarn Berry (4) would be possible, but it is not that
widespread yet.
pnpm is another alternative package manager which many projects have now
switched to. It is a lot faster than yarn, and offers safer dependency
management
@CommandMC CommandMC force-pushed the build-system-overhaul branch from 9c881c3 to 67dbfef Compare May 18, 2024 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants