Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A new ESM transpile-only equivalent of 'ts-node-transpile-only' #1978

Open
G-Rath opened this issue Mar 28, 2023 · 3 comments
Open

A new ESM transpile-only equivalent of 'ts-node-transpile-only' #1978

G-Rath opened this issue Mar 28, 2023 · 3 comments

Comments

@G-Rath
Copy link
Contributor

G-Rath commented Mar 28, 2023

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)

@cspotcode
Copy link
Collaborator

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

@G-Rath
Copy link
Contributor Author

G-Rath commented Mar 28, 2023

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

@cspotcode
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants