Assign dependents/dependencies to ctx before uninstall

This commit is contained in:
Zoltan Kochan committed 2016-08-07 14:31:33 +03:00
1 parent 5c2b31017d
commit ce8ef2c9a8
1 file changed
+1
+1
View File
@@ -29,6 +29,7 @@ module.exports = function (opts) {
lockfile = resolve(cmd.ctx.store, 'lock')
cmd.unlock = () => unlock(lockfile)
cmd.storeJson = storeJsonController(cmd.ctx.store)
Object.assign(cmd.ctx, cmd.storeJson.read())
if (!opts.quiet) cmd.ctx.log = logger(opts.logger)
else cmd.ctx.log = function () { return function () {} }