ts-node
10.9.2 · 8 Dec 2023MIT60.2M / weekRepositoryHomepagenpmAtom feed
9.1.1 is the newest release of 9.x.
In short
3 breaking2 new7 fixed5 changed
- breaking
Breaking changes are labelled [BREAKING] below.
- breaking
Drops support for node versions < 10
- breaking
Re-add
realpath, which should fix workflows that use symlinks, such aspnpm, Lerna workspaces, or other mono-repo configurations
Release note
Breaking changes are labelled [BREAKING] below.
Added
Throw
ERR_REQUIRE_ESMwhen a file isrequire()d which should be loaded as ESMRe-add
"exports"declaration to package.json in backwards-compatible way, enablingnode --loader ts-node/esmwithout file extensionAllow specifying
"require"option via tsconfigREPL respects node's
NODE_NO_READLINEenvironment variableAdd a transpile-only entrypoint for ESM loader:
node --loader ts-node/esm/transpile-only
Changed
- breaking
Drops support for node versions < 10
Fixed
- breaking
Re-add
realpath, which should fix workflows that use symlinks, such aspnpm, Lerna workspaces, or other mono-repo configurations Compile files within
node_moduleswhen--skip-ignoreor--ignoreoptions are configured to allow itFix #884 by not adding all referenced files to
getSourceFileNames/rootNamesFix #996: bump
projectVersionevery timegetSourceFileNameschanges, avoiding accidentally outdated typecheckingFix #1051: pass transformers object to
ts.transpileModuleFix #1060: use source maps for stack traces in ESM modules
Fix #1072: Respect
--experimental-specifier-resolutioncoming fromNODE_OPTIONSin ESM loaderFix #1098: ESM loader should skip
.cjs,.mjs, and any unexpected file extensions
Docs
Better explain how to compile imports, either CommonJS or using experimental ESM loader. Resolves #1075
Misc