ts-node
ts-node copied to clipboard
TypeScript execution and REPL for node.js
Use case: write a `.ts` script on github; run it without precompilation using `npx` / `npm x` ``` $ npm x -- mygithubusername/my-cool-cli-tool --help ``` In cases like these, the...
Add debug logging for new features in v10: implicit config, transpiler, etc. Log the generated swc config? Is debug logger exposed to transpilers so they can do additional logging? If...
Blocked by #1445 Building off of #1202, we know the maximum "target" you can use for the given node version, so we can log a helpful warning when your target...
Follow-up to #1202 If running the globally-installed ts-node, and tsconfig "extends" points to a "ts-node/node*/tsconfig.json", and local resolution fails: Fallback resolve to the globally-installed ts-node Although, in these situations, tsc...
### Desired Behavior `TS_NODE_OPTIONS` allows specifying multiple ts-node CLI flags in a single env var. Perhaps we deprecate various other env vars in the process, to reduce our env var...
Our `compile` function accepts a third argument, `lineOffset` The REPL passes a value, but the implementation ignores that argument. Should we be using it for something? Is it meant to...
### Desired Behavior ts-node has a flag that enables diagnostic logging from ts-node (not TypeScript) to either a file on disk or to stdout. ts-node's API allows passing a `reportDiagnostic`...
In my code generator project, I watch directory and on each change do require.cache cleaning and rerequire modules from that directory. And I use stack to implement one important feature....
One is strict mode, the other is not. ``` (function() {console.log(this)})() ``` ...behaves differently. Investigate if we can fix this.