TypeStrong / dts-bundle

Export TypeScript .d.ts files as an external module definition
MIT License
308 stars 57 forks source link

Doesn't work on macOS X #44

Closed vp2177 closed 7 years ago

vp2177 commented 7 years ago

Looks like #33 is still present:

env: node\r: No such file or directory

Using dts-bundle@0.6.0

origin1tech commented 7 years ago

Install dos2unix

brew install dos2unix

Then run against lib files where your node config prefix is located at /var/local

dos2unix /var/local/lib/node_modules/dts-bundle/lib/index.js

Do the same for the dts-bundle.js file at the same path.

To check your node prefix run

npm config get prefix

If you want to fix this perm. just fork fix as described above then install from your repo until the author sorts it all out.

npm install username/dts-bundle -g
tolemac commented 7 years ago

Its a problem with line ending. I'm going to fix it.

origin1tech commented 7 years ago

@tolemac just patched it up real quick as I needed it tonight but yeah that's all it is...

tolemac commented 7 years ago

@vp2177 I have just released 0.6.1 version.

Can you test it? I'm over windows system now.

origin1tech commented 7 years ago

yeah sure..just a sec.

origin1tech commented 7 years ago

Yep all good!!! 💯

tolemac commented 7 years ago

Sorry for that, It isn't the first time. I work under windows and Git change the line endings on checkout, later npm publish upload files with CRLF to npm server and only git push change the line endings when upload to git server.

I have added .gitattributes file where assign LF line ending to TS and JS files ... I hope that will be the last time.