build: 其他人不一定用 nvm ,所以去掉
This commit is contained in:
parent
9d7fcd4d91
commit
7d5a9d50d1
@ -1,12 +1,5 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
. "$(dirname -- "$0")/_/husky.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
|
# Run the commit-msg hook
|
||||||
npx --no-install commitlint --edit
|
npx --no-install commitlint --edit
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
. "$(dirname -- "$0")/_/husky.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
|
# Run the pre-commit hook
|
||||||
npx --no-install -- lint-staged
|
npx --no-install -- lint-staged
|
||||||
|
Loading…
x
Reference in New Issue
Block a user