Releases: TypeStrong/ts-node
Releases · TypeStrong/ts-node
TypeScript Error Formatting
Changed
- Use TypeScript error formatting for diagnostic ouput
- Delete
declarationMap
option from input configuration underts-node
Normalize More Places For Windows
Fixed
- More places to
normalize
for Windows to work
Windows Project Resolution
Fixed
- Normalize paths for Windows before trying to resolve the project path
- Use
Buffer.from
instead of deprecatednew Buffer
REPL Context
Fixed
- Use
Script#runInThisContext
via REPL to ensure objects all exist in the same context
Allow Empty Files
Fixed
- Fixed an issue where empty files were not returned to TypeScript, resulting in "not found" compiler issues
Short transpile only flag
Changed
- Add
-T
short flag for transpile only mode
Type Check By Default
Many people were having issues with "fast" transpilation being the default over full project type checking like tsc
. Type checking the full project upfront is slower but expected behaviour, so it's the default once again. You can still enable transpileOnly
or ts-node/register/transpile-only
for the faster transpiler without type checking.
Changed
- Default behaviour is
typeCheck == true || transpileOnly == false
Ignore `rootDir` Errors
Fixed
- Ignore TypeScript
rootDir
errors
Remove Sub-Process
Changed
- Remove the sub-process spawning behaviour that introduced issues with 4.x
- Use
node -r ts-node/register
for advanced node.js flags such as--inspect
- Use
- Drop support for pre-2.0 TypeScript releases
- Use TypeScript to parse
tsconfig.json
to mirrortsc
behaviours- Caveat: Must specify full path when using
project
in 5.x
- Caveat: Must specify full path when using
Fixed
- Fixed issues with CLI and environment variable defaults
Windows Detached Process
Changed
- Avoid detaching process in Windows