TypeStrong / dts-bundle

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

Version 0.4.3 is still using CRLF #35

Closed meowtec closed 8 years ago

meowtec commented 8 years ago
npm i dts-bundle -g
dts-bundle 
env: node\r: No such file or directory

I have to edit global node_modules/dts-bundle/lib/dts-bundle.js, replace all CRLF to LF, to use dts-bundle

tolemac commented 8 years ago

@meowtec thanks for report it.

I think that it is a linux issue, true?

I don't know why the tests passed in travis that runs on linux ... I will try to fix it ASAP.

meowtec commented 8 years ago

Maybe your local files were still CRLF, but git auto transform CRLF to LF so that tests passed in travis?

bjouhier commented 8 years ago

I just installed it with npm install -g dts-bundle on OSX. After install:

$ dts-bundle --name my-project.d.ts --main out/index.d.ts
env: node\r: No such file or directory

I edited the bin/dts-bundle file and changed the line endings to Unix style. After that it worked:

dts-bundle --name my-project.d.ts --main out/index.d.ts
dts-bundle version 0.4.3
Export TypeScript .d.ts files as an external module definition

BTW, cool tool 😄. I just had to do a small fix in one of my files and I was able to generate a valid .d.ts for my project.

tolemac commented 8 years ago

Sorry for the delay ... I have to fix it.

tolemac commented 8 years ago

@meowtec @bjouhier I could see that its a problem building the npm package, the repository it's ok. I have released 0.5.0 version of npm package, I have download it and it hasn't CRLF line endings.

Close the issue, feel free to reopen if you want.