-
Notifications
You must be signed in to change notification settings - Fork 3k
postupdate / preupdate hooks #12237
Comments
Bower's update and npm's update do different things; under the hood npm's update calls |
Sorry for resurrecting this old ticket, but is there still no plan to add pre/post update hooks? I believe I have a more compelling use - running |
@PMLavigne I'm trying to do the exact same thing. Did you find a solution meanwhile? |
I think this would also be useful for printing out Release Notes and things like that, but maybe only in --dev mode (installing a package from its directory rather than as a dependency). |
@Gpx unfortunately no, I wound up just doing a much less elegant wrapper script that runs both separately, and using that instead. Still would massively prefer if this functionality were present natively, maybe with a big fat warning if there's concern it could be used incorrectly? |
I'm looking for a way to make a backup of the current package-lock.json ... on a "preupdate" sort of a basis. Since the lifecycle hook idea is out, what is the alternative? Recommendations? Another challenge I notice is that package-lock.json does not get written until after the "postinstall" hook finishes. What event to use to post-/pre-process package-lock.json?? |
npm install
has hooks either side of it, butnpm update
has not.I often use
npm postinstall
to runbower install
, I would like to have npm runbower update
afternpm update
The text was updated successfully, but these errors were encountered: