Files
pnpm/cli/default-reporter
Zoltan Kochan efb341bd71 test: add test for install summary without updated manifest log
Add a reporter test verifying that when packageManifestLogger only emits
the initial manifest (as happens during dry runs), the summary correctly
shows only root-level changes without false dependency type diffs.

Also add changeset for the install summary fix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 22:08:09 +01:00
..
2025-10-21 15:30:20 +02:00
2026-02-18 14:54:09 +01:00

@pnpm/default-reporter

The default reporter of pnpm

Installation

pnpm add @pnpm/default-reporter

Usage

import { streamParser } from '@pnpm/logger'
import { initDefaultReporter } from '@pnpm/default-reporter'

const stopReporting = initDefaultReporter({
  context: {
    argv: [],
  },
  streamParser,
})

try {
  // calling some pnpm APIs
} finally {
  stopReporting()
}

Style Guide

  1. Never use blue or grey as font color as they are hard to read in many consoles.
    1. Use dim instead of grey
    2. Use cyan bright instead of blue
  2. Don't hide the CLI cursor. (It is easier to never hide but it is really needed only when scripts are running.)
  3. Don't use green and yellow to distinct something.

License

MIT