do not pass stdin to sub tasks, fixes elastic/kibana-plugin-helpers#19

Original commit: elastic/kibana-plugin-helpers@f872954888
This commit is contained in:
spalger 2016-11-21 14:46:02 -07:00
parent a1daf785ec
commit 5298a23d92
3 changed files with 3 additions and 3 deletions

View file

@ -8,6 +8,6 @@ module.exports = function (plugin, command) {
var args = ['--dev', '--plugin-path', plugin.root, ...command.unkownOptions];
execFileSync(cmd, args, {
cwd: kibanaDir,
stdio: 'inherit'
stdio: ['ignore', 1, 2]
});
};

View file

@ -10,7 +10,7 @@ module.exports = function (plugin) {
var args = ['run', 'test:dev', '--'].concat(kbnServerArgs);
execFileSync(cmd, args, {
cwd: plugin.kibanaRoot,
stdio: 'inherit'
stdio: ['ignore', 1, 2]
});
};

View file

@ -11,7 +11,7 @@ module.exports = function (plugin) {
var path = `${kibanaBins}${delimiter}${process.env.PATH}`;
execFileSync(cmd, args, {
cwd: plugin.root,
stdio: 'inherit',
stdio: ['ignore', 1, 2],
env: Object.assign({}, process.env, {
PATH: path
})