post-checkout-npm-install
v0.1.0
Published
npm install when package.json dependencies have changed post-checkout
Downloads
68
Maintainers
Readme
post-checkout-npm-install
post-checkout-npm-install runs npm install
when package.json dependencies have
changed post-merge or post-rebase.
npm install post-checkout-npm-install --save-dev
Husky Usage
husky makes git hooks easy.
// package.json
{
"husky": {
"hooks": {
"post-checkout": "post-checkout-npm-install",
}
}
}
Node Usage
const postNpmInstall = require("post-checkout-npm-install");
postNpmInstall([previousHead, newHead, isBranchCheckout], useCI);