move platform module exports to the top, so clear what is exported.

Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/b8b10139
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/b8b10139
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/b8b10139

Branch: refs/heads/no-lazy-load
Commit: b8b101392be972ae177f2f23b1cf53c3a9886b08
Parents: 7d865a9
Author: filmaj <maj....@gmail.com>
Authored: Fri Jun 9 18:25:46 2017 -0500
Committer: filmaj <maj....@gmail.com>
Committed: Fri Jun 9 18:25:46 2017 -0500

----------------------------------------------------------------------
 src/cordova/platform.js | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/b8b10139/src/cordova/platform.js
----------------------------------------------------------------------
diff --git a/src/cordova/platform.js b/src/cordova/platform.js
index 3545b29..0b8a8c1 100644
--- a/src/cordova/platform.js
+++ b/src/cordova/platform.js
@@ -38,6 +38,15 @@ var config            = require('./config'),
     npmUninstall      = require('cordova-fetch').uninstall,
     platformMetadata  = require('./platform_metadata');
 
+module.exports = platform;
+module.exports.add = add;
+module.exports.remove = remove;
+module.exports.update = update;
+module.exports.check = check;
+module.exports.list = list;
+module.exports.save = save;
+module.exports.getPlatformDetailsFromDir = getPlatformDetailsFromDir;
+
 // Expose the platform parsers on top of this command
 for (var p in platforms) {
     module.exports[p] = platforms[p];
@@ -647,7 +656,6 @@ function addDeprecatedInformationToPlatforms(platformsList){
  * @param {Object} opts
  * @returns {Promise}
  */
-module.exports = platform;
 function platform(command, targets, opts) {
     // CB-10519 wrap function code into promise so throwing error
     // would result in promise rejection instead of uncaught exception
@@ -760,10 +768,3 @@ function removePlatformPluginsJson(projectRoot, target) {
     shell.rm('-f', plugins_json);
 }
 
-module.exports.add = add;
-module.exports.remove = remove;
-module.exports.update = update;
-module.exports.check = check;
-module.exports.list = list;
-module.exports.save = save;
-module.exports.getPlatformDetailsFromDir = getPlatformDetailsFromDir;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to