hunk.code_window:     "graceful-fs": "^4.1.11",
       "is-ci": "^1.0.10",
       "is-inner-link": "^2.0.0",
       "is-windows": "^1.0.0",
       "link-dir": "^2.0.0",
       "load-json-file": "^2.0.0",
       "load-yaml-file": "^0.1.0",
       "loud-rejection": "^1.6.0",
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:     "link-dir": "^2.0.1",
  
hunk.file_path: package.json
hunk.type: replace
file: import storeStatus from '../api/storeStatus'
  import {PnpmOptions} from '../types'
  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) {
    if (input[0] !== 'status') {
      throw new Error('Unknown command')
    }
    const modifiedPkgs = await storeStatus(opts)
    if (!modifiedPkgs || !modifiedPkgs.length) {
      logger.info('Packages in the store are untouched')
      return
    }
  
    throw new StoreStatusError(modifiedPkgs)
  }
  