File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,6 @@ if (Object.keys(cli.flags).map(key => typeof cli.flags[key]).some(type => type =
76
76
}
77
77
78
78
errorNotifier ( cli . input [ 0 ] , cli . flags )
79
- . then ( result => {
80
- console . log ( result . stdout || result . stderr ) ;
81
- } )
82
79
. catch ( error => {
83
- console . error ( error . stdout || error . stderr ) ;
84
80
process . exit ( error . code ) ;
85
81
} ) ;
Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ module.exports = (command, opts) => {
7
7
opts = opts || { } ;
8
8
9
9
return new Promise ( ( resolve , reject ) => {
10
- execa . shell ( command , { env : { FORCE_COLOR : true } } )
11
- . then ( result => resolve ( result ) )
10
+ const execaPending = execa . shell ( command , { env : { FORCE_COLOR : true } } ) ;
11
+ execaPending . stdout . pipe ( process . stdout ) ;
12
+ execaPending . stderr . pipe ( process . stderr ) ;
13
+ return execaPending . then ( result => resolve ( result ) )
12
14
. catch ( error => notifier . notify ( notifierOptions ( opts ) , ( ) => reject ( error ) ) ) ;
13
15
} ) ;
14
16
} ;
You can’t perform that action at this time.
0 commit comments