tsconfig
prepackage-checks
tsconfig | prepackage-checks | |
---|---|---|
1 | 1 | |
333 | 2 | |
- | - | |
4.8 | 8.9 | |
5 months ago | 8 days ago | |
TypeScript | ||
MIT License | Apache License 2.0 |
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!).
prepackage-checks
-
Finally, a guide for Node.js and TypeScript and ESM that works
The good news is that one may use `expect` with Node's built-in test runner -- the result feels fairly similar to using expect with Jest.
Indeed, Node's test support can handle dynamic test creation, so one can do crazy things like https://github.com/andrewaylett/prepackage-checks/blob/main/... -- that dynamically asynchronously executes NPM builds from subdirectories, loading and running per-build expectations.
What are some alternatives?
esyes - Run your TypeScript files quickly and with more positivity
esno - Alias to `tsx`
modglot - UMD-ESM polyglot