insales / insales-uploader

Менеджер ассетов для платформы InSales.
https://insales.github.io/insales-uploader/
MIT License
12 stars 5 forks source link

Сломан cli для версий старше 1.10.7 #15

Open knopki opened 3 years ago

knopki commented 3 years ago

На любой версии старше 1.10.7 невозможен запуск утилиты uploader из-за CRLF-переводов строк, а точнее неправильной shebang-строки:

> node_modules/.bin/uploader
/usr/bin/env: ‘node\r’: No such file or directory

Очевидно, сломалось что-то в процессе сборки/публикации между 1.10.7 и 1.11.0:

➜ for v in 1.10.7 1.11.0 1.11.5 1.11.9 1.12.0 1.12.1; curl -s "https://unpkg.com/insales-uploader@$v/bin/uploader.js" | file -; end
/dev/stdin: Node.js script, ASCII text executable
/dev/stdin: Node.js script, ASCII text executable, with CRLF line terminators
/dev/stdin: Node.js script, ASCII text executable, with CRLF line terminators
/dev/stdin: Node.js script, ASCII text executable, with CRLF line terminators
/dev/stdin: Node.js script, ASCII text executable, with CRLF line terminators
/dev/stdin: Node.js script, ASCII text executable, with CRLF line terminators