Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

post-merge-install

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

post-merge-install

A hook to run 'npm install/script' post-merge via husky 🐶

  • 0.5.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.7K
decreased by-20.72%
Maintainers
2
Weekly downloads
 
Created
Source

post-merge-install

npm All Contributors npm

Runs 🏃 npm install/script post merge/rebase and when package.json or package-lock.json changes.

Install

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

or globally as

npm install -g post-merge-install

Prerequisite

  • husky

Usage

$ npx husky add .husky/post-merge 'post-merge-install "yarn install"'
$ npx husky add .husky/post-rebase 'post-merge-install "bolt install"'

Custom script

post-merge-install can be used with custom scripts as well.

$ post-merge-install 'yarn install'
$ post-merge-install 'lerna' 'bootstrap'

Options

FlagDescriptionDetails
--promptEnables a confirmation prompt before installing packages if change in package.json or package-lock.json/yarn.lock is detected.By default post-merge-install automatically installs dependencies if a change is detected. Adding this flag enables a confirmation prompt asking if an npm install/script should be run.

Alias

You can also use the alias pmi instead of post-merge-install

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Aditi Mohanty
Aditi Mohanty

💻
Dhruv Jain
Dhruv Jain

💻 📖
Abinav Seelan
Abinav Seelan

💻 📖

This project follows the all-contributors specification. Contributions of any kind welcome!


ClearTax

Keywords

FAQs

Package last updated on 06 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc