diff --git a/local-cli/cli.js b/local-cli/cli.js index 4e1897623..e79f421a2 100644 --- a/local-cli/cli.js +++ b/local-cli/cli.js @@ -11,12 +11,13 @@ var generate = require('../private-cli/src/generate/generate'); var init = require('./init.js'); var library = require('../private-cli/src/library/library'); var runAndroid = require('./run-android.js'); -var runPackager = require('./run-packager.js'); +var server = require('../private-cli/src/server/server'); // TODO: remove once we fully roll out the `private-cli` based cli // var bundle_DEPRECATED = require('./bundle.js'); // var generateAndroid_DEPRECATED = require('./generate-android.js'); // var newLibrary_DEPRECATED = require('./new-library.js'); +// var runPackager_DEPRECATED = require('./run-packager.js'); function printUsage() { console.log([ @@ -46,10 +47,10 @@ function run() { } var config = Config.get(__dirname); - switch (args[0]) { case 'start': - runPackager(); + server(args, config).done(); + // runPackager_DEPRECATED(); break; case 'bundle': bundle(args, config).done(); diff --git a/private-cli/src/server/server.js b/private-cli/src/server/server.js index cd0bb49f0..fe7c23abf 100644 --- a/private-cli/src/server/server.js +++ b/private-cli/src/server/server.js @@ -130,7 +130,7 @@ function _server(argv, config, resolve, reject) { ); } - resolve(startServer(args, config)); + startServer(args, config); } function startServer(args, config) {