Skip to content

Commit

Permalink
uninstall to remove overrides from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jun 6, 2015
1 parent 70acf9c commit 9e7e730
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -976,14 +976,14 @@ exports.uninstall = function(names) {
installed = installed || config.loader;

names.forEach(function(name) {
if (!config.pjson.dependencies[name] && !config.pjson.devDependencies[name]) {
if (!config.pjson.dependencies[name] && !config.pjson.devDependencies[name])
ui.log('warn', 'Dependency %' + name + '% is not an existing primary install.');
return;
}

var fullname = installed.baseMap[name] && installed.baseMap[name].exactName;
delete config.pjson.dependencies[name];
delete config.pjson.devDependencies[name];
delete installed.baseMap[name];
delete config.pjson.overrides[fullname];
});

return clean();
Expand Down

0 comments on commit 9e7e730

Please sign in to comment.