diff --git a/History.md b/History.md index 6fb18a8..b3f7ef6 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,7 @@ +1.7.0 / 2017-1-12 +================== + * fix command proxying (debug, shell, mongo, etc) + 1.6.1 / 2017-1-4 ================== * add method for meteor npm install diff --git a/lib/tools/meteor.js b/lib/tools/meteor.js index 557577f..96b1c6e 100644 --- a/lib/tools/meteor.js +++ b/lib/tools/meteor.js @@ -168,15 +168,8 @@ module.exports.invokeMeteorCommand = function invokeMeteorCommand(cmd, args) { var child = spawn(meteor, [cmd].concat(args), { cwd: this.findAppDirectory(), - env: process.env - }); - - child.stdout.on('data', function stdout(data) { - console.log(data.toString()); - }); - - child.stderr.on('data', function stderr(data) { - console.error(data.toString()); + env: process.env, + stdio: 'inherit' // REQUIRED to proxy input to meteor }); _.each(['SIGINT', 'SIGHUP', 'SIGTERM'], function (sig) { diff --git a/package.json b/package.json index 31dfd33..af244aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iron-meteor", - "version": "1.6.1", + "version": "1.7.0", "description": "A command line tool for scaffolding Meteor applications.", "homepage": "https://github.com/iron-meteor/iron-cli", "bugs": {