RyuuGan / sol-merger

Merges all imports into single file for solidity contracts
BSD 2-Clause "Simplified" License
157 stars 22 forks source link

sol-merger env: node\r: No such file or directory #31

Closed xlab closed 4 years ago

xlab commented 4 years ago

Running on macOS, getting this error:

$ sol-merger contract.sol
env: node\r: No such file or directory

Another relevant issue: https://github.com/docsifyjs/docsify-cli/issues/78

Fixed by opening sol-merger script and change line endings from Windows to Unix:

Screenshot 2020-04-13 at 15 56 08

Please update your build env to produce files with unix line endings.

RyuuGan commented 4 years ago

Hello @xlab

I'll try to fix this problem, but it is typescript compiler doing this, because all code is using \n, but not Windows style \r\n.

The only thing I'm doing is compiling in windows.

Best regards

RyuuGan commented 4 years ago

Next versions with be with \n new lines. There is an option to tsc to do so:

tsc --newLine lf -p tsconfig.app.json

Best regards

RyuuGan commented 4 years ago

Should be fixed in v3.0.0