code: function mergeBowerOverrides(options) {
    options = extend({
      bowerPath: 'bower.json',
      bowerComponentsPath: 'bower_components'
    }, options);
  
    var bowerOverrides = getBowerOverrides(options);
  
    return mapJSON(function(json, file) {
      // get name of package from file path, but fallback to json
      var name = file.relative.substring(0, file.relative.indexOf('/')) || json.name;
  
      extend(json, bowerOverrides[name]);
  
      if (options.expandGlobs) {
        var cwd = path.join(process.cwd(), options.bowerComponentsPath, name);
        json.main = expandGlobs(json.main, cwd);
      }
  
      return json;
    });
  }
docs: this is the plugin itself: merge overrides into each bower.json contents