ts-eager is a fast TypeScript runner and register hook that uses esbuild for eager compilation of all included files from tsconfig.json at startup, with fallback to lazy compilation for files outside the project. Version 2.0.2 is the latest stable release, updated to support esbuild v0.11.20 with compatibility for newer versions. It differentiates from ts-node by leveraging esbuild's speed for noticeable improvements in tasks like test runs, and offers fallback to ts-node for type-specific features like emitDecoratorMetadata and optional tsconfig-paths support for path mapping.
npm install ts-eagerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use ts-eager as a require hook to run a TypeScript file with eager compilation.
Update to ts-eager@2 and esbuild@^0.11.20.
Set environment variable ESBUILD_MAX_BUFFER=268435456 or upgrade to v2.0.1+.
Run tsc --noEmit in parallel or as a pre-build step.
Install ts-node: npm install -D ts-node
Run node with --require ts-eager/register (CommonJS mode) or convert your project to CommonJS.
Install typescript: npm install -D typescript
Install esbuild: npm install -D esbuild