tsconfig
template-typescript-monorepo
tsconfig | template-typescript-monorepo | |
---|---|---|
1 | 2 | |
333 | 35 | |
- | - | |
4.8 | 9.1 | |
5 months ago | 20 days ago | |
TypeScript | ||
MIT License | MIT License |
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!).
template-typescript-monorepo
-
Finally, a guide for Node.js and TypeScript and ESM that works
I did some experiments myself and settled on this template repository:
https://github.com/bhouston/template-typescript-monorepo
This has a lot of features that work well together:
-
Monorepo or not
I have a template mono repot for TS + Libraries + React + Webserver all using ES modules. It is here: https://github.com/bhouston/template-esbuild-ts-monorepo
What are some alternatives?
esyes - Run your TypeScript files quickly and with more positivity
prepackage-checks
modglot - UMD-ESM polyglot
hn-search - Hacker News Search
node_monorepo
tsx - ⚡️ TypeScript Execute: Node.js enhanced to run TypeScript & ESM
tsm - TypeScript Module Loader