0.1.0 • Published 4 years ago

post-checkout-npm-install v0.1.0

Weekly downloads
7
License
CC0-1.0
Repository
github
Last release
4 years ago

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);