ts-node
ts-node copied to clipboard
TypeScript execution and REPL for node.js
Node shipped a `Module.runMain` bug in 18.6.0 introduced by loader chaining. They've subsequently implemented a fix: nodejs/node#43763 ts-node shipped a workaround that version-detects 18.6.0. The workaround doesn't preserve `require.main` and...
An epic to track diagnostic logging, warnings, and tools users can use to better understand what's happening. The goal is for users to diagnose their own problems and walk away...
Invalidate source-map-support cache when `require.cache` is cleaned and file is re-required. Fixes #268 Is `emptyCacheBetweenOperations` sufficient? Or will this cause unnecessary fs calls within source-map-support? If we want to avoid...
### Desired Behavior I'd like to be able to access the compiled output for a filename. I think this could be accomplished well by adding a `getCompiledOutput(filename)` to the return...
### Desired Behavior Ask `ts-node` not to run anything, but to emit everything matched by `--files` as compiled output. ### Is this request related to a problem? A way to...
I've had this idea kicking around for ts-node to launch its own long-lived server process, then multiple ts-node processes / threads / etc can request transpiled code and diagnostics from...
The ESM loader now resolves import paths using TypeScripts [path mapping][1] feature. [1]: https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping EDIT: Closes #1586
Alternative to #1816
I've done a bunch of nyc support hacks in our tests, and yet there are still weird issues. I'm hopeful that switching to c8 avoids all that.
### Desired Behavior Most of the ts-node options currently have equivalent environment variable. Such as, ` --compiler` => `TS_NODE_COMPILER` `--transpileOnly` => `TS_NODE_TRANSPILE_ONLY` `--transpiler` currently does not have one. Please add...