ts-node icon indicating copy to clipboard operation
ts-node copied to clipboard

TypeScript execution and REPL for node.js

Results 221 ts-node issues
Sort by recently updated
recently updated
newest added

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...

you can do this

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...

you can do this

### 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...

enhancement
you can do this

### 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...

research

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...

research

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

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...