JSPM

post-checkout-npm-install

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 33
  • Score
    100M100P100Q63790F
  • License CC0-1.0

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

Package Exports

  • post-checkout-npm-install

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (post-checkout-npm-install) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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