Re:The TypeScript compiler is now implemented internally wit...
by codefined on Wednesday November 02, 2022 @05:10PM
(#33442964)
Actually looks to be tabled for TypeScript 5.0, release date of 'March 14th' next year.
Re:The TypeScript compiler is now implemented internally wit...
by cypress66 on Wednesday November 02, 2022 @05:28PM
(#33443153)
But that doesn't seem like it would fix the typical flow, there still would be no transpiling of imports. So yes you could use .ts in ts-node, but you would have to use .js in tsc. Which is pretty awful (you want your code to work with both).
See https://github.com/microsoft/TypeScript/issues/37582 which is referenced in the 4.9 Iteration Plan as "Support .ts as a Module Specifier for Bundler/Loader Scenarios": https://github.com/microsoft/TypeScript/issues/50457