You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.)
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.
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:
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.The text was updated successfully, but these errors were encountered: