mockdeep / typewiz

Automatically discover and add missing types in your TypeScript code
https://medium.com/@urish/manual-typing-is-no-fun-introducing-typewiz-58e3e8813f4c
1.1k stars 46 forks source link

CLI doesn't work under linux #62

Closed zoehneto closed 6 years ago

zoehneto commented 6 years ago

Because the typewiz CLI is published with CRLF line endings, it can not be used on linux.

The error message is /usr/bin/env: 'node\r': No such file or directory. Manually changing the line endings to LF for the entry file symlinked under node_modules/.bin/typewiz fixes this.

This also blocks the PR at urish/typewiz-webpack-demo#1

urish commented 6 years ago

Seems similar to #22 - I will look into that shortly and fix

urish commented 6 years ago

@zoehneto I just published 1.0.0-beta.2 - can you please check if this fixes the issue for you?

zoehneto commented 6 years ago

@urish 1.0.0-beta.2 fixes the issue, I have also updated the PR for typewiz-webpack-demo to use it.

urish commented 6 years ago

Awesome!