Skip to content

Commit

Permalink
Retain Unix line terminators for files in the bin directory
Browse files Browse the repository at this point in the history
NPM publishes files without converting line endings. Files in the bin
directory are supposed to be run directly by the shell, and if they
contain Windows line endings then macOS fails to interpret the hash-bang
correctly. There's an open issue in the NPM repo regarding this
(npm/npm#12371).
  • Loading branch information
enlight committed Sep 15, 2016
1 parent 9bc0285 commit 963037d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/bin/*.js eol=lf

0 comments on commit 963037d

Please sign in to comment.