size-limit icon indicating copy to clipboard operation
size-limit copied to clipboard

Extra blank lines when using --silent

Open isuvorov opened this issue 9 months ago • 1 comments

Extra blank lines appear when using the --silent option.

I propose add a check if (isSilentMode) in the appropriate parts of the code to fix this issue.

function createHumanReporter(process, isSilentMode = false) {
  function print(...lines) {
    if (!isSilentMode) {
      process.stdout.write('  ' + lines.join('\n  ') + '\n')
    }
  }

https://github.com/ai/size-limit/blob/d0d681d7d0c686773650ba1af03d892f0081e761/packages/size-limit/create-reporter.js#L48

Need advice on the correctness of this approach.

I could make PR by myself.

This gap is too БЕСИТ 😬

image image image

isuvorov avatar May 22 '24 18:05 isuvorov