Skip to content

Commit a291a56

Browse files
authored
refactor: further optimization to pre-push git hook (#60)
1 parent 21cfc39 commit a291a56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.husky/pre-push

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Configuration: Each entry is an array with [pattern, command, description]
22
# Format: "pattern" "command" "pattern description"
3-
CHECKS=('^(package\.json|pnpm-lock\.yaml)$' 'pnpm install --lockfile-only --ignore-scripts' 'package.json or pnpm-lock.yaml – please run pnpm install to update dependencies')
3+
CHECKS=(
4+
'^(package\.json|pnpm-lock\.yaml)$' 'pnpm install --lockfile-only --ignore-scripts' 'package.json or pnpm-lock.yaml – please run pnpm install to update dependencies'
5+
)
46

57
# Check for changes in specified files before pushing and run corresponding commands
68
## Get the upstream branch

0 commit comments

Comments
 (0)