diff --git a/local-cli/cli.js b/local-cli/cli.js index 5319ceb75..f2e9ec6ce 100644 --- a/local-cli/cli.js +++ b/local-cli/cli.js @@ -47,6 +47,10 @@ function init(root, projectName) { spawn(path.resolve(__dirname, 'init.sh'), [projectName], {stdio:'inherit'}); } +if (require.main === module) { + run(); +} + module.exports = { run: run, init: init,