Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta: Build system overhaul #1057

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

CommandMC
Copy link
Contributor

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

README.md Show resolved Hide resolved
@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
Contributor Author

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
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