11 lines
367 B
Plaintext
Executable File
11 lines
367 B
Plaintext
Executable File
echo "Running husky pre-commit hook..."
|
|
|
|
# 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
|