tsconfig
tsm
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tsconfig
-
Finally, a guide for Node.js and TypeScript and ESM that works
Many people in this thread are rightly complaining that this does not answer the "why does this work". Having a working example is a good start for that though as at least you have a known target and as you change things (and break things), you can see what those options did.
One problem with this guide that makes that trickier is that the tsconfig.json itself imports https://github.com/sindresorhus/tsconfig/blob/5c87dc118e057d... and overrides a bunch of values.
So if you really want to understand what it's doing, you need to get rid of that dependency and inline / merge that config file. That would also add stability to your project as it's one less upstream dependency out of your control (and a big one at that as it controls how you entire project is built!).
tsm
- Finally, a guide for Node.js and TypeScript and ESM that works
- Deno 1.26
-
Using tsm as a shebang interpreter in TypeScript
tsm is a brand-new player in this category and represents a step forward in the broader TypeScript/JavaScript ecosystem.
What are some alternatives?
esyes - Run your TypeScript files quickly and with more positivity
nanostores - A tiny (286 bytes) state manager for React/RN/Preact/Vue/Svelte with many atomic tree-shakable stores
modglot - UMD-ESM polyglot
create-figma-plugin - :battery: The comprehensive toolkit for developing plugins and widgets for Figma and FigJam
node_monorepo
tinyhttp - 🦄 0-legacy, tiny & fast web framework as a replacement of Express
prepackage-checks
tsx - ⚡️ TypeScript Execute: Node.js enhanced to run TypeScript & ESM