npm.io
0.1.0 • Published 6 years agoCLI

post-checkout-npm-install

Licence
CC0-1.0
Version
0.1.0
Deps
0
Size
14 kB
Vulns
0
Weekly
0
Stars
1

post-checkout-npm-install

npm version build status

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

Keywords