Skip to content

Convert shebangs to #!/usr/bin/env node #10382

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

Closed
mcandre opened this issue Aug 17, 2016 · 2 comments
Closed

Convert shebangs to #!/usr/bin/env node #10382

mcandre opened this issue Aug 17, 2016 · 2 comments
Labels
Out of Scope This idea sits outside of the TypeScript language design constraints Suggestion An idea for TypeScript

Comments

@mcandre
Copy link

mcandre commented Aug 17, 2016

When tsc compiles a .ts file into a .js file, replace a shebang line like #!/usr/bin/env typescript to a more appropriate one for .js files: #!/usr/bin/env node.

@kitsonk
Copy link
Contributor

kitsonk commented Aug 17, 2016

That is more appropriate for you, but not for everyone.

@RyanCavanaugh RyanCavanaugh added Suggestion An idea for TypeScript Out of Scope This idea sits outside of the TypeScript language design constraints labels Aug 17, 2016
@RyanCavanaugh
Copy link
Member

Original discussion / implementation happened at #2749. We are not in the business of guessing what you meant when you wrote executing shell script in a file. It sounds like what you actually want is ts-node, which already exists.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Out of Scope This idea sits outside of the TypeScript language design constraints Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants