mirror of
https://github.com/bower/bower.git
synced 2026-01-22 20:58:08 -05:00
Read only dependencies of deep dependencies (not dev dependencies).
This commit is contained in:
@@ -659,8 +659,8 @@ Project.prototype._restoreNode = function (node, flattened, jsonKey) {
|
||||
node.dependencies = node.dependencies || {};
|
||||
node.dependants = node.dependants || {};
|
||||
|
||||
deps = mout.object.filter(node.pkgMeta[jsonKey], function (value) {
|
||||
return !node.dependencies[value];
|
||||
deps = mout.object.filter(node.pkgMeta[jsonKey], function (value, key) {
|
||||
return !node.dependencies[key];
|
||||
});
|
||||
|
||||
mout.object.forOwn(deps, function (value, key) {
|
||||
@@ -698,11 +698,11 @@ Project.prototype._restoreNode = function (node, flattened, jsonKey) {
|
||||
restored.dependants[node.name] = node;
|
||||
|
||||
// Call restore for this dependency
|
||||
this._restoreNode(restored, flattened, jsonKey);
|
||||
this._restoreNode(restored, flattened, 'dependencies');
|
||||
|
||||
// Do the same for the incompatible local package
|
||||
if (local && restored !== local) {
|
||||
this._restoreNode(local, flattened, jsonKey);
|
||||
this._restoreNode(local, flattened, 'dependencies');
|
||||
}
|
||||
}, this);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user