Andrew Bradley

Results 254 issues of Andrew Bradley

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

enhancement
you can do this

One is strict mode, the other is not. ``` (function() {console.log(this)})() ``` ...behaves differently. Investigate if we can fix this.

research

Implements #1161 Supercedes #1261, because I wrote #1261 a long time ago and I'm worried about bugs if I try to grok that code again

Link to discord conversation about this: https://discord.com/channels/508357248330760243/508357248330760249/932730462571474984 `ts-node --init` can behave roughly like `tsc --init`: emit tsconfig configuration If tsconfig already exists, add `"ts-node"` sub-object to it If tsconfig does...

Vanilla node REPL logs line context only for SyntaxErrors. For example: ``` $ node Welcome to Node.js v17.0.0. Type ".help" for more information. > foo bar foo bar

Think about refactoring tests into a test matrix of: * typechecking / transpileOnly / transpileOnly w/swc * ESM loader / non-ESM loader The SWC compiler has needed test cases added...