Package Exports
- post-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-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-npm-install 
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();