File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ shopt -s extglob
4
4
5
5
dune build @fmt --auto-promote
6
6
7
- files=$( find runtime tests -type f \( -name " *.res" -o -name " *.resi" \) ! -name " syntaxErrors*" ! -path " tests/syntax_*" ! -path " tests/analysis_tests/tests*" ! -path " tests/gentype_tests/typescript-react-example/ node_modules" )
7
+ files=$( find runtime tests -type f \( -name " *.res" -o -name " *.resi" \) ! -name " syntaxErrors*" ! -path " tests/syntax_*" ! -path " tests/analysis_tests/tests*" ! -path " */ node_modules/* " )
8
8
./cli/rescript format $files
9
9
10
10
npm run format
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ case "$(uname -s)" in
17
17
fi
18
18
19
19
echo " Checking ReScript code formatting..."
20
- files=$( find runtime tests -type f \( -name " *.res" -o -name " *.resi" \) ! -name " syntaxErrors*" ! -path " tests/syntax_*" ! -path " tests/analysis_tests/tests*" ! -path " tests/gentype_tests/typescript-react-example/ node_modules" )
20
+ files=$( find runtime tests -type f \( -name " *.res" -o -name " *.resi" \) ! -name " syntaxErrors*" ! -path " tests/syntax_*" ! -path " tests/analysis_tests/tests*" ! -path " */ node_modules/* " )
21
21
if ./cli/rescript format -check $files ; then
22
22
printf " ${successGreen} ✅ ReScript code formatting ok.${reset} \n"
23
23
else
You can’t perform that action at this time.
0 commit comments