Husky Configuration File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const runYarnLock = 'yarn install --frozen-lockfile'; | |
module.exports = { | |
hooks: { | |
'post-checkout': `if [[ $HUSKY_GIT_PARAMS =~ 1$ ]]; then ${runYarnLock}; fi`, | |
'post-merge': runYarnLock, | |
'post-rebase': 'yarn install', | |
'pre-commit': 'yarn test && yarn lint-staged' | |
} | |
}; |
--frozen-lickfile should be --frozen-lockfile
thx
--frozen-lickfile should be --frozen-lockfile
thx
husky v5 has changed a way to pass params into hook: instead of passing $HUSKY_GIT_PARAMS
they pass every parameter in their variable $1 $2 ...
how tho change script for this?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
--frozen-lickfile should be --frozen-lockfile