Skip to content

#! -> treat as comment #6481

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
Bigous opened this issue Jan 14, 2016 · 4 comments
Closed

#! -> treat as comment #6481

Bigous opened this issue Jan 14, 2016 · 4 comments
Labels
Duplicate An existing issue was already created

Comments

@Bigous
Copy link

Bigous commented Jan 14, 2016

When writing a node software that should create a batch or symbolic link, we need to put the folowing line at the begining of the .js file:

#!/bin/node

So npm knows it is a node executable script and creates a batch file with all the necessary stuff in it.
If we put it at a typescript file to be transpiled to javascript, it works, but gives annoying compilation error.
I purpose that lines started with #! shoud be treated as a special case of commentary line that should always go to the transpiled file.

@jesseschalken
Copy link
Contributor

What error are you getting? I'm using 1.7.5 and the #!/bin/node line is kept (copied to the .js file) without any error. (I believe #2749 first added #! support.)

@jesseschalken
Copy link
Contributor

Maybe you're running into microsoft/vscode#899?

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Jan 14, 2016
@RyanCavanaugh
Copy link
Member

This is a duplicate suggestion of #2749 -- if you're running bits that have that change, please post a specific bug report if that feature isn't working.

@Bigous
Copy link
Author

Bigous commented Jan 14, 2016

That's it @jesseschalken ...
image
You can threat it as a duplicate - sorry about that (didn't know it was called shebangs)

@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
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants