Dual Node TypeScript Packages – The Easy Way

Well we’ve all been down that road haven’t we? trying to build a Node TypeScript package that supports both ESM/CJS without losing our mind in the process.

I took it upon myself to lose my own mind while keeping you sane 🫡

Introducing moshimosh, The easiest way to bootstrap a Node Hybrid TypeScript package with modern tooling that just works, all you need is

 npx moshimosh
Enter fullscreen mode Exit fullscreen mode

You Get

  • Hybrid ESM/CJS that just works
  • Tests and Coverage with vitest
  • Linting/Formatting with Biome
  • Linting/Formatting Git Pre-commit hooks
  • Documentation generation from your compiled .d.ts with typedoc
  • Github action for building and testing
  • Github action for updating docs in a GitHub Pages repo

And if i saved you some sanity, please check out the GitHub Repo, all contributions are welcome!


Discover more from Coursity

Subscribe to get the latest posts sent to your email.

Leave a Comment

Your email address will not be published. Required fields are marked *

Discover more from Coursity

Subscribe now to keep reading and get access to the full archive.

Continue reading

Scroll to Top
Cs : go prime status upgrade steam altergift. Photoscape for windows best free software download.