From 1d3f8bc14520eb354df01f9c40d2126e1fa7c507 Mon Sep 17 00:00:00 2001 From: Matthew Arbesfeld Date: Thu, 21 Aug 2014 00:58:35 -0700 Subject: [PATCH] Only write cordova dependencies if there are any --- tools/unipackage.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/unipackage.js b/tools/unipackage.js index 0c97a282b6..d479e85c24 100644 --- a/tools/unipackage.js +++ b/tools/unipackage.js @@ -680,9 +680,11 @@ _.extend(Unipackage.prototype, { earliestCompatibleVersion: self.earliestCompatibleVersion, isTest: self.isTest, unibuilds: [], - plugins: [], - cordovaDependencies: self.cordovaDependencies + plugins: [] }; + if (! _.isEmpty(self.cordovaDependencies)) { + mainJson.cordovaDependencies = self.cordovaDependencies; + } var buildInfoJson = null; if (!options.elideBuildInfo) {