Skip to content

Commit 312280d

Browse files
authored
chore: Add verbosity to precommit (#6336)
🚀
1 parent 015aa4b commit 312280d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.husky/pre-commit

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ cd $REANIMATED_PATH
1111
if [ $? -eq 1 ]; then
1212
yarn type:check:all
1313
yarn find-unused-code:js
14+
else
15+
echo "[PRECOMMIT]: Reanimated TypeScript source files weren't changed. Skipping TypeScript checks." >&2
1416
fi
1517

1618
# This automatically builds Reanimated Babel plugin JavaScript files if their
@@ -24,7 +26,11 @@ if [ $? -eq 1 ]; then
2426
grep -E 'plugin/build/plugin.js' >/dev/null
2527
if [ $? -eq 1 ]; then
2628
git add plugin/build/plugin.js
27-
echo "[Reanimated] Plugin files were automatically built and changes were spotted.\
29+
echo "[PRECOMMIT]: Babel plugin files were automatically built and changes were spotted.\
2830
\n Those changes were added to the commit." >&2
31+
else
32+
echo "[PRECOMMIT]: All Babel plugin files were already commited." >&2
2933
fi
34+
else
35+
echo "[PRECOMMIT]: Babel plugin files weren't changed. Skipping plugin checks." >&2
3036
fi

0 commit comments

Comments
 (0)