npm.io
2.1.0 • Published 6 years ago

postinstall-postinstall

Licence
MIT
Version
2.1.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
56
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

postinstall-postinstall

Run your app's postinstall npm script during this package's postinstall script.

Why

Yarn runs the postinstall script after yarn, yarn install and yarn add <package> but not after yarn remove <package>. If you add this package to your project, it will execute your project's postinstall hook even after a yarn remove <package>. This requires your postinstall script to be idempotent, because it will be run twice for yarn, yarn install, and yarn add <package>