build: 其他人不一定用 nvm ,所以去掉

This commit is contained in:
Burt 2024-11-10 22:50:35 +08:00
parent 9d7fcd4d91
commit 7d5a9d50d1
2 changed files with 0 additions and 14 deletions

View File

@ -1,12 +1,5 @@
#!/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

View File

@ -1,12 +1,5 @@
#!/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 pre-commit hook
npx --no-install -- lint-staged