ts-node
ts-node copied to clipboard
TypeScript execution and REPL for node.js
We can log a helpful warning when code tries to use TS builtin modules and yet `@types/node` was not resolved. Either resolution was never attempted or resolution failed. We can...
### Expected Behavior $ npx ts-node > let a = 3 undefined > 3 + 4 7 > .type a let a: number > 3 + 4 7 ### Actual...
On CI, we do this *at the top-level*: ``` npm install typescript@ ``` However, this predates our current testing setup, which installs `ts-node` into `./tests/node_modules`. Not only that, but the...
https://github.com/nodejs/node/commit/e2a6399be742f53103474d9fc1e56fadf7f90ccc#diff-670bf55805b781d9a3579f8bca9104c04d94af87cc33220149fd7d37b095ca1cR1440-R1466
Related: #597 Related: #25 Note to self: review the history of this feature. Relates to work in #1405
To facilitate debugging, similar to `--showConfig`, but this flag will start `ts-node` like normal, compile a single file, write the compiled output to stdout, then exit. Possible cons: we already...
Related to #1282 Tracking as a separate issue because I don't think this is worth fixing, but I want to document my research. In node's ``, `[eval]`, and `[stdin]` there...
Took a quick stab at completions in the REPL. Issues: first time you get tab completions, the input line freezes while the language service spins up. We'd probably want to...
Fixes #853 but may affect performance, and it's a pretty big behavioral change. Only implements the change for `LanguageService` codepath.
### Desired Behavior When invoked with new `--doctor` / `"doctor"` / `TS_NODE_DOCTOR` option, will eagerly log verbose advice about project configuration. For example, if using a `"target"` option that is...