Skip to content

Commit 55e82f3

Browse files
authoredSep 15, 2020
fix(gatsby-cli): pass --verbose flag to gatsby build properly (#26904)
1 parent fe596ec commit 55e82f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎packages/gatsby/src/commands/build.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ interface IBuildArgs extends IProgram {
5858
}
5959

6060
module.exports = async function build(program: IBuildArgs): Promise<void> {
61+
report.setVerbose(program.verbose)
62+
6163
if (program.profile) {
6264
report.warn(
6365
`React Profiling is enabled. This can have a performance impact. See https://www.gatsbyjs.org/docs/profiling-site-performance-with-react-profiler/#performance-impact`
@@ -220,7 +222,7 @@ module.exports = async function build(program: IBuildArgs): Promise<void> {
220222
} else if (cachedWebpackCompilationHash) {
221223
report.info(
222224
report.stripIndent(`
223-
One or more of your source files have changed since the last time you ran Gatsby. All
225+
One or more of your source files have changed since the last time you ran Gatsby. All
224226
pages will be rebuilt.
225227
`)
226228
)

0 commit comments

Comments
 (0)
Please sign in to comment.