ts-node
10.9.2 · 8 Dec 2023MIT60.2M / weekRepositoryHomepagenpmAtom feed
10.9.2 is the newest release of 10.x.
In short
2 new3 fixed
Release note
Questions about this release? Ask in the official discussion thread
Added
Adds workaround for extensionless entrypoints with ESM loader (#1649, #1654)
You can now combine tools such as
mochawith--loader ts-node/esm, where previously node would throw[ERR_UNKNOWN_FILE_EXTENSION]node has a bug where combining
--loaderwith an extensionless entrypoint causes this error nodejs/node#33226Some tools, for example
mocha, have an extensionless entrypoint. (source, source)Combining
NODE_OPTIONS=--loader ts-node/esmwith these tools causes this error. mochajs/mocha#4645node intends to fix this bug in a future release: nodejs/node#41711
In the interim, we have implemented a workaround in ts-node.
Adds support for target "ES2022" in
moduleTypesoverrides
Fixed
Fixed bug where
--swcand other third-party transpilers did not respectmoduleTypesoverrides (#1651, #1652, #1660)Fixed bug where node flags were not preserved correctly in
process.execArgv(#1657, #1658)This affected
child_process.fork(), since it usesprocess.execArgvto create a similar child runtime.With this fix,
child_process.fork()will preserve both node flags andts-nodehooks.
Fixed compatibility TypeScript 4.7's API changes (#1647, #1648)