nx/scripts/format.sh
Victor Savkin ffd9d93019 fix(build): make Nx dev process WSL-friendly
- Reformat code to have LF line endings.
- Enforce LF line endings.
2019-01-14 10:47:44 -05:00

9 lines
240 B
Bash

#!/usr/bin/env bash
echo "Prettier"
prettier "**/*.{ts,js,json,css,scss,md}" "!**/{__name__,__directory__}/**" --write
echo "Line endings"
find packages -type f -print0 | xargs -0 dos2unix
find scripts -type f -print0 | xargs -0 dos2unix