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

Is there a ts-node hashbang? #298

Closed
atrauzzi opened this issue Apr 3, 2017 · 1 comment
Closed

Is there a ts-node hashbang? #298

atrauzzi opened this issue Apr 3, 2017 · 1 comment
Labels
duplicate question Support requests. We tend not to answer these on Github. Nowadays I convert to Discussion instead.

Comments

@atrauzzi
Copy link

atrauzzi commented Apr 3, 2017

If I wanted to use a .ts file as an entrypoint, wouldn't I want to have a hashbang that indicates such?

For nodejs scripts, you put this at the top of the file:

#!/usr/bin/env node

Wouldn't it then make sense to have;

#!/usr/bin/env ts-node

???

@blakeembrey
Copy link
Member

It should work as you've described. See #73 and #116.

@blakeembrey blakeembrey added duplicate question Support requests. We tend not to answer these on Github. Nowadays I convert to Discussion instead. labels Apr 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate question Support requests. We tend not to answer these on Github. Nowadays I convert to Discussion instead.
Projects
None yet
Development

No branches or pull requests

2 participants