prepackage-checks
tsconfig
prepackage-checks | tsconfig | |
---|---|---|
1 | 1 | |
2 | 333 | |
- | - | |
8.9 | 4.8 | |
8 days ago | 5 months ago | |
TypeScript | ||
Apache License 2.0 | 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.
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.
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!).
What are some alternatives?
esno - Alias to `tsx`
esyes - Run your TypeScript files quickly and with more positivity
modglot - UMD-ESM polyglot
template-typescript-monorepo - Template repo with the latest tech working together
node_monorepo
documentation-framework - "The Grand Unified Theory of Documentation" (David Laing) - a popular and transformative documentation authoring framework
tsx - ⚡️ TypeScript Execute: Node.js enhanced to run TypeScript & ESM
jest - Delightful JavaScript Testing.
tsm - TypeScript Module Loader