Assign dependents/dependencies to ctx before uninstall
This commit is contained in:
1 file changed
+1
@@ -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 () {} }
|
||||
|
||||
|
||||
Reference in new issue
Block a user