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 {
    PnpmOptions,
    storeStatus,
    storePrune,
  } from 'supi'
  import {PnpmError} from '../errorTypes'
  import logger from 'pnpm-logger'
  
  class StoreStatusError extends PnpmError {
    constructor (modified: string[]) {
      super('MODIFIED_DEPENDENCY', '')
      this.modified = modified
    }
    modified: string[]
  }
  
  export default async function (input: string[], opts: PnpmOptions) {
    switch (input[0]) {
      case 'status':
        return statusCmd(opts)
      case 'prune':
        return storePrune(opts)
      default:
        throw new Error('Unknown command')
    }
  }
  
  async function statusCmd (opts: PnpmOptions) {
    const modifiedPkgs = await storeStatus(opts)
    if (!modifiedPkgs || !modifiedPkgs.length) {
      logger.info('Packages in the store are untouched')
      return
    }
  
    throw new StoreStatusError(modifiedPkgs)
  }
  