File tree 2 files changed +8
-2
lines changed
packages/gatsby/src/commands
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,10 @@ interface IBuildArgs extends IProgram {
61
61
}
62
62
63
63
module . exports = async function build ( program : IBuildArgs ) : Promise < void > {
64
- report . setVerbose ( isTruthy ( process . env . VERBOSE ) || program . verbose )
64
+ if ( isTruthy ( process . env . VERBOSE ) ) {
65
+ program . verbose = true
66
+ }
67
+ report . setVerbose ( program . verbose )
65
68
66
69
if ( program . profile ) {
67
70
report . warn (
Original file line number Diff line number Diff line change @@ -81,7 +81,10 @@ const openDebuggerPort = (debugInfo: IDebugInfo): void => {
81
81
}
82
82
83
83
module . exports = async ( program : IDevelopArgs ) : Promise < void > => {
84
- reporter . setVerbose ( isTruthy ( process . env . VERBOSE ) || program . verbose )
84
+ if ( isTruthy ( process . env . VERBOSE ) ) {
85
+ program . verbose = true
86
+ }
87
+ reporter . setVerbose ( program . verbose )
85
88
86
89
if ( program . debugInfo ) {
87
90
openDebuggerPort ( program . debugInfo )
You can’t perform that action at this time.
0 commit comments