3 ms·
- Why include files, exports, and types in your package.json when you are just using ts-node to transpile on the fly? - ts-node is much slower than something l
by quackware 3y ago
- Why include files, exports, and types in your package.json when you are just using ts-node to transpile on the fly?
- ts-node is much slower than something like esbuild/tsx right? As long as you rely on your ide type checking or run type checking before deploying your app.
- khalidx 3y agoThe "exports" and other sections are recommended things you'll need in your `package.json` file to support ESM. Sensible defaults. Also just points to an index.ts file (that you'll likely have in your project if you are developing a package). Also, this project can be compiled with `tsc` or a bundler, of course. In terms of speed, this should consistently start up an app or CLI in <3 seconds (depending on size of course).