Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add verbosity to precommit #6336

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ cd $REANIMATED_PATH
if [ $? -eq 1 ]; then
yarn type:check:all
yarn find-unused-code:js
else
echo "[PRECOMMIT]: Reanimated TypeScript source files weren't changed. Skipping TypeScript checks." >&2
fi

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