Skip to content

Commit

Permalink
431-fix: Correct behavior of husky precommit (#432)
Browse files Browse the repository at this point in the history
* fix: 431 - correct behavior of husky precommit

* fix: 431 - optimize solution

* fix: 431 - remove unused text

* fix: 431 - minor changes in scripts
  • Loading branch information
thirdmadman authored Jul 31, 2024
1 parent e883696 commit e6b7565
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run precommit
4 changes: 2 additions & 2 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ then
echo "The name of your commit has been changed to '$MODIFIED_MSG' according to the styleguide 😎"
echo "-"
echo "-"
echo "-" "precommit": "concurrently \"chmod +x .husky/pre-commit\" \"npx lint-staged\" \"npm:build\"",
echo "-"
fi

npm run precommit
npm run build
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",
"prepare": "husky"
},
"dependencies": {
Expand Down

0 comments on commit e6b7565

Please sign in to comment.