Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

post-checkout-npm-install

felipemfp120CC0-1.00.1.0

npm install when package.json dependencies have changed post-checkout

javascript, js, npm, post, git, post-checkout, install, husky

readme

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

changelog

Changes to post-npm-install

2.0.0

  • Updated: Node v8+ compatibility.

1.1.0

  • Added: Option to install using npm ci

1.0.0

  • Initial Version