typescript-bundle icon indicating copy to clipboard operation
typescript-bundle copied to clipboard

carriage return char in tsc-bundle script breaks in linux

Open damonsmith opened this issue 5 years ago • 0 comments
trafficstars

In the latest release of typescript-bundle the script tsc-bundle has a \r char - a DOS carriage return character at the end of the #!/usr/env/node line, which means it fails in linux with an unexpected char error.

/usr/bin/env: ‘node\r’: No such file or directory

I can fix this locally running dos2unix node_modules/typescript-bundle/tsc-bundle and then everything works fine. The \r isn't in the source version of the script so I can't put a PR in for it unfortunately.

damonsmith avatar Jul 16 '20 00:07 damonsmith