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

431-fix: Correct behavior of husky precommit #432

Merged
merged 4 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

ansivgit marked this conversation as resolved.
Show resolved Hide resolved
npm run precommit
2 changes: 0 additions & 2 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,3 @@ then
echo "-"
echo "-" "precommit": "concurrently \"chmod +x .husky/pre-commit\" \"npx lint-staged\" \"npm:build\"",
ansivgit marked this conversation as resolved.
Show resolved Hide resolved
fi

npm run precommit
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test:playWright": "npx playwright test",
"test:playWrightWithUpdate": "npx playwright test --update-snapshots",
"coverage": "vitest run --coverage",
"precommit": "concurrently \"npx lint-staged\" \"npm:build\"",
"precommit": "npx lint-staged && npm run build",
thirdmadman marked this conversation as resolved.
Show resolved Hide resolved
"prepare": "husky"
},
"dependencies": {
Expand Down
Loading