Skip to content

Commit

Permalink
Removed the logic where patch version increases with commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcang committed Dec 29, 2023
1 parent e61eaf1 commit e3107b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
chmod ug+x .husky/*
yarn lint \"src/**/*.ts\" \"test/**/*.ts\" --fix ;if git --no-pager diff HEAD package.json | egrep '\"version\": \"[0-9]+\\.'; then npm run version; else (npm --no-git-tag-version version patch; git add package.json;); fi && yarn pretty-quick --staged
yarn lint \"src/**/*.ts\" \"test/**/*.ts\" --fix ;if git --no-pager diff HEAD package.json | egrep '\"version\": \"[0-9]+\\.'; then npm run version; fi && yarn pretty-quick --staged

0 comments on commit e3107b3

Please sign in to comment.