module.exports.name = 'build';

module.exports.invoke = function(cordova, options, async) {
  'use strict';

  var util = require('./util.js');

  cordova.build(util.convertCordovaOptions(options), async);
};

@@ -138,16 +138,262 @@
 .js');%0A%0A
+  // Filter known options.%0A  // 'cordova build' command douse not use '--target' option.%0A  var filtered = %7B%7D;%0A  %5B'platforms', 'build', 'device'%5D.forEach(function(name) %7B%0A    if (options%5Bname%5D) %7B%0A      filtered%5Bname%5D = options%5Bname%5D;%0A    %7D%0A  %7D);%0A%0A
   cordov
@@ -427,23 +427,24 @@
 Options(
-options
+filtered
 ), async

Fix fail 'cordova:build' task with cordova target option.