diff --git a/.husky/pre-push b/.husky/pre-push index 102b366..3915c26 100644 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,3 +1,9 @@ pnpm preflight -git add dist/ -git commit -m "chore: bump dist" + +# Check if there are any changes in the dist/ directory +if [ -n "$(git status dist/ --porcelain)" ]; then + git add dist/ + git commit -m "chore: update dist" +else + echo "No changes in dist/ to commit." +fi