ts-node
ts-node copied to clipboard
TypeScript execution and REPL for node.js
It's not clear that the `ignore` option is an array of regexps which are passed to `new RegExp`. I think we can be clearer about this. Whatever docs update we...
We have redirection for require(); add it to ESM loader. Relies on cspotcode/node-source-map-support#31
We have multiple codepaths which both duplicate FS access code. Additionally, our source-map-support hook touches this FS caching layer. Refactor into a single fs API which can be instantiated by...
I'm not sure if this is a bug or what. But if I hook into the `CompilerHost`'s `getSourceFile` function, it *never* reuses a pre-existing SourceFile. It always returns new ones....
blocked by merge of #970 Project references are basically an extension to TypeScript's resolver. It will intelligently figure out when you're importing the output of a referenced project, and will...
When user runs `ts-node ./index.ts` and the code spawns worker_threads and/or child_processes, these should also be able to `require()` `.ts` files. This *already* happens with `node --require ts-node/register`, since that's...
Can we detect when the user has enabled node's native sourcemap support and skip registration of `@cspotcode/source-map-support`?
Info about: File classification: module or CommonJS? Due to package.json? Or overrides? Is it transformed? Or ignored? Why? Due to ignore rules? File extension? Prompt the user to use --cat-file...
### Desired Behavior Copy-paste below code into `ts-node` twice, and _only_ get `Duplicate function implementation` error. ```typescript function add(x: number, y: number): number { return x + y } ```...
### Expected Behavior I would expect code that doesn't error when trying to compile it with `tsc` to compile when run through `ts-node`. ### Actual Behavior I get a TSError...