From 7dc8593d6426868b77b623b7593fb38cb508bc77 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 4 Jan 2016 16:33:38 -0800 Subject: [PATCH] respect out parameter in packager.js --- console/packager.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/console/packager.js b/console/packager.js index 3605aec2dc..ee8ad3a56e 100644 --- a/console/packager.js +++ b/console/packager.js @@ -39,6 +39,12 @@ if (osType == "Darwin") { options["name"] = "server-console" } +// check if we were passed a custom out directory, pass it along if so +var argv = require('yargs').argv; +if (argv.out) { + options.out = argv.out +} + // call the packager to produce the executable packager(options, function(error, appPath){ console.log("Wrote new app to " + appPath);