mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
Merge pull request #239 from miloshadzic/save-fix
Don't save dependency to component.json when it doesn't resolve
This commit is contained in:
@@ -14,8 +14,8 @@ var config = require('../core/config');
|
||||
|
||||
function save(manager) {
|
||||
// Wait for the resolve event and then for the load json event
|
||||
manager.on('resolve', function () {
|
||||
manager.on('loadJSON', function () {
|
||||
manager.on('resolve', function (resolved) {
|
||||
if (resolved) manager.on('loadJSON', function () {
|
||||
manager.json.dependencies = manager.json.dependencies || {};
|
||||
|
||||
// Only include the root packages
|
||||
|
||||
Reference in New Issue
Block a user