Is there a way to use ts-node to run .mts
files. I've tried to do so but am getting errors on imports (from within the .mts file).
Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
I don't want to do this because I'm not confident how it will impact the broader repo.
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module
I can live with an .mjs
but I'd like everything to be TS.
Edit:
https://github.com/TypeStrong/ts-node/issues/1007
ts-node execute typescript with module import and module defined