Closed SierraJC closed 1 year ago
When attempting to run ts-project-bundle on MacOS or inside any linux Docker image, the command fails.
ts-project-bundle
$ ts-project-bundle --out=dist env: node\r: No such file or directory error Command failed with exit code 127.
Calling node node_modules/ts-project-bundle/build/cli.js --out=dist directly works, but only bypasses the root issue.
node node_modules/ts-project-bundle/build/cli.js --out=dist
This is being caused by the EOL encoding of node_modules/.bin/ts-project-bundle. Changing the file encoding from CRLF to LF will fix the issue.
node_modules/.bin/ts-project-bundle
CRLF
LF
If you can the line endings and submit a PR I'll be happy to accept.
When attempting to run
ts-project-bundle
on MacOS or inside any linux Docker image, the command fails.Calling
node node_modules/ts-project-bundle/build/cli.js --out=dist
directly works, but only bypasses the root issue.This is being caused by the EOL encoding of
node_modules/.bin/ts-project-bundle
. Changing the file encoding fromCRLF
toLF
will fix the issue.