Skip to content

Commit

Permalink
show progress on loglevel info
Browse files Browse the repository at this point in the history
  • Loading branch information
milahu committed Apr 1, 2022
1 parent 13b5f00 commit c7f5afb
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions packages/default-reporter/src/reporterForClient/index.ts
Expand Up @@ -64,10 +64,6 @@ export default function (
: undefined

const outputs: Array<Rx.Observable<Rx.Observable<{msg: string}>>> = [
reportProgress(log$, {
cwd,
throttle,
}),
reportPeerDependencyIssues(log$),
reportLifecycleScripts(log$, {
appendOnly: opts.appendOnly === true || opts.streamLifecycleOutput,
Expand All @@ -85,12 +81,6 @@ export default function (
zoomOutCurrent: opts.isRecursive,
}
),
...reportStats(log$, {
cmd: opts.cmd,
cwd,
isRecursive: opts.isRecursive,
width,
}),
reportInstallChecks(log$.installCheck, { cwd }),
reportRequestRetry(log$.requestRetry),
reportScope(log$.scope, { isRecursive: opts.isRecursive, cmd: opts.cmd }),
Expand All @@ -107,6 +97,21 @@ export default function (
outputs.push(reportDeprecations(log$.deprecation, { cwd, isRecursive: opts.isRecursive }))
}

if (logLevelNumber >= LOG_LEVEL_NUMBER.info) {
outputs.push(
reportProgress(log$, {
cwd,
throttle,
}),
...reportStats(log$, {
cmd: opts.cmd,
cwd,
isRecursive: opts.isRecursive,
width,
})
)
}

if (!opts.appendOnly) {
outputs.push(reportBigTarballsProgress(log$))
}
Expand Down

0 comments on commit c7f5afb

Please sign in to comment.