Fix for issue #256: Changed Cordova raw options conversion for 5.4.0+ api: argv field now defaults to empty array instead of null

This commit is contained in:
Guillaume Jenkins 2016-02-05 13:39:35 -08:00
Родитель b406ba7112
Коммит b4b021c30f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -398,7 +398,7 @@ module TacoUtility {
private static toCordovaRaw540Arguments(commandData: Commands.ICommandData, platforms: string[] = null): Cordova.ICordova540RawOptions {
var buildOpts: Cordova.ICordova540BuildOptions = {
archs: commandData.options["archs"] || null,
argv: commandData.original.indexOf("--") >= 0 ? commandData.original.slice(commandData.original.indexOf("--") + 1) : null,
argv: commandData.original.indexOf("--") >= 0 ? commandData.original.slice(commandData.original.indexOf("--") + 1) : [],
buildconfig: commandData.options["buildconfig"] || null,
debug: commandData.options["debug"] || false,
device: commandData.options["device"] || false,