ts-node
ts-node copied to clipboard
It would be better if --esm is automatically specified if the file extension is `.mts`
Desired Behavior
ts-node requires --esm if the target file is ES modules, and the name of the file ends with .mts, it must be an ES module.
So I'd like to do ts-node foo.mts without --esm option.