hunk.code_window:       packageName: pkg.name,
         packageVersion: pkg.version
       }).notify()
     }
     const cmd = getCommandFullName(cliConf.argv.remain[0])
     if (!supportedCmds.has(cmd)) {
       runNpm(argv)
       return Promise.resolve()
     }
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:   const cmd = getCommandFullName(cliConf.argv.remain[0]) || 'help'
  
hunk.file_path: src/bin/pnpm.ts
hunk.type: replace
file: import path = require('path')
  import list, {forPackages as listForPackages} from 'pnpm-list'
  
  const LAYOUT_VERSION = '1'
  
  export default async function (
    args: string[],
    opts: {
      prefix: string,
      depth?: number,
      only?: 'dev' | 'prod',
      long?: boolean,
      parseable?: boolean,
      global: boolean,
      independentLeaves: boolean,
    },
    command: string
  ) {
    let prefix: string
    if (opts.global) {
      prefix = path.join(opts.prefix, LAYOUT_VERSION)
      if (opts.independentLeaves) {
        prefix += '_independent_leaves'
      }
    } else {
      prefix = opts.prefix
    }
  
    opts.long = opts.long || command === 'll' || command === 'la'
    const output = args.length
      ? await listForPackages(args, prefix, opts)
      : await list(prefix, opts)
    console.log(output)
  }
  