post-npm-install

2.0.0 • Public • Published

post-npm-install post-npm-install

npm version build status

post-npm-install runs npm install when package.json dependencies have changed post-merge or post-rebase.

npm install post-npm-install --save-dev

Git Usage

The post-merge hook runs after a successful merge command, which may automatically occur after git pull. If package.json dependencies have changed, post-npm-install automatically updates your local dependencies.

# create the post-merge hook 
echo -e "#\!/usr/bin/env bash\npost-npm-install" > .git/hooks/post-merge
 
# make the post-merge hook executable 
chmod +x .git/hooks/post-merge

Husky Usage

husky makes git hooks easy.

// package.json
{
  "husky": {
    "hooks": {
      "post-merge": "post-npm-install",
      "post-rebase": "post-npm-install"
    }
  }
}

Node Usage

const postNpmInstall = require('post-npm-install');
 
postNpmInstall();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    3,662
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    3,662
  • 1.1.0
    8
  • 1.0.0
    0

Package Sidebar

Install

npm i post-npm-install

Weekly Downloads

3,670

Version

2.0.0

License

CC0-1.0

Unpacked Size

14.1 kB

Total Files

7

Last publish

Collaborators

  • jonathantneal