unibest/.husky/commit-msg
2024-11-10 22:43:22 +08:00

13 lines
273 B
Bash
Executable File

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# Load nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# Use the correct Node.js version
nvm use v20.15.1
# Run the commit-msg hook
npx --no-install commitlint --edit