old_contents: module.exports.name = 'build';
  
  module.exports.invoke = function(cordova, options, async) {
    'use strict';
  
    var util = require('./util.js');
  
    cordova.build(util.convertCordovaOptions(options), async);
  };
  
new_contents: module.exports.name = 'build';
  
  module.exports.invoke = function(cordova, options, async) {
    'use strict';
  
    var util = require('./util.js');
  
    // Filter known options.
    // 'cordova build' command douse not use '--target' option.
    var filtered = {};
    ['platforms', 'build', 'device'].forEach(function(name) {
      if (options[name]) {
        filtered[name] = options[name];
      }
    });
  
    cordova.build(util.convertCordovaOptions(filtered), async);
  };
  
subject: Fix fail 'cordova:build' task with cordova target option.