Skip to content
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
11 changes: 9 additions & 2 deletions workspaces/frontend/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
echo "Running husky pre-commit hook..."
cd workspaces/frontend
npm run test:lint

# Check if there are any staged changes in workspaces/frontend
if git diff --cached --name-only | grep -q "^workspaces/frontend/"; then
echo "Changes detected in workspaces/frontend, running lint check..."
cd workspaces/frontend
npm run test:lint
else
echo "No changes in workspaces/frontend, skipping lint check."
fi