hunk.code_window:       throw new Error('No package.json found - cannot uninstall')
       }
       const pkg = ctx.pkg
       if (opts.lock === false) {
         return run()
       }
       return lock(ctx.storePath, run, {stale: opts.lockStaleDuration})
  
hunk.labels: keep keep keep replace replace keep keep keep keep keep
hunk.file_path: src/api/uninstall.ts
hunk.type: replace
file: import defaultReporter from 'pnpm-default-reporter'
  import silentReporter from './silentReporter'
  import streamParser from '../logging/streamParser'
  import bole = require('bole')
  
  export type ReporterType = 'default' | 'ndjson' | 'silent'
  
  export default (reporterType: ReporterType) => {
    switch (reporterType) {
      case 'default':
        defaultReporter(streamParser)
        return
      case 'ndjson':
        bole.output([
          {
            level: 'debug', stream: process.stdout
          },
        ])
        return
      case 'silent':
        silentReporter(streamParser)
        return
    }
  }
  