ts-node icon indicating copy to clipboard operation
ts-node copied to clipboard

A new ESM `transpile-only` equivalent of 'ts-node-transpile-only'

Open G-Rath opened this issue 2 years ago • 3 comments
trafficstars

Related to #1101 & #1007 - it would be nice to have ts-node-esm-transpile-only for scripting purposes.

(this might have already been asked somewhere but I wasn't able to find it so either way I think it's useful to have a dedicated ticket regardless of the outcome)

G-Rath avatar Mar 28 '23 19:03 G-Rath

Are you able to use the -S flag to /usr/bin/env? Nowadays, most Unix environments support it.

https://typestrong.org/ts-node/docs/usage/#shebang

cspotcode avatar Mar 28 '23 19:03 cspotcode

Unfortunately not, we've still got a few systems that are using older versions of env 🙁

G-Rath avatar Mar 28 '23 19:03 G-Rath

That's a bummer. I'm leaning towards making ESM enabled by default in v11, so then ts-node-transpile-only would do the trick.

cspotcode avatar Mar 29 '23 15:03 cspotcode