Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/update-dependents.js')
-rw-r--r--lib/update-dependents.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/update-dependents.js b/lib/update-dependents.js
index 1dd0c5642..ed722837c 100644
--- a/lib/update-dependents.js
+++ b/lib/update-dependents.js
@@ -148,8 +148,14 @@ function updateDepToNew (depName, depVer, pkg, other, cb) {
, cb
)
chain
- ( [ removeDependencyLinks, data, pkg, other ]
+ ( [ lifecycle, data, "preupdatedependency" ]
+ , [ lifecycle, data, "preupdatedependency-"+depName ]
+ , [ removeDependencyLinks, data, pkg, other ]
, [ createDependencyLinks, data, pkg ]
+ , [ lifecycle, data, "updatedependency-"+depName ]
+ , [ lifecycle, data, "postupdatedependency-"+depName ]
+ , [ lifecycle, data, "updatedependency" ]
+ , [ lifecycle, data, "postupdatedependency" ]
, function (er) { cb(er, pkg.name+"@"+other) }
)
})