hunk.code_window:             --debug           print verbose debug message`
     }, {
       boolean: [
         'save-dev', 'save', 'save-exact', 'save-optional', 'dry-run', 'global', 'quiet', 'debug'
       ],
       alias: {
  
hunk.labels: keep keep keep replace keep keep
hunk.after_edit:       'save-dev', 'save', 'save-exact', 'save-optional', 'dry-run', 'global', 'silent', 'debug'
  
hunk.file_path: src/bin/pnpm.ts
hunk.type: replace
file: import path = require('path')
  import fs = require('fs')
  import pnpmPkgJson from '../pnpmPkgJson'
  
  export type StorePackage = {
    dependents: string[],
    dependencies: {
      [name: string]: string
    }
  }
  
  export type StoreJson = {
    pnpm: string,
    packages: {
      [name: string]: StorePackage
    }
  }
  
  export function read (storePath: string): StoreJson {
    const storeJsonPath = path.join(storePath, 'store.json')
    try {
      return JSON.parse(fs.readFileSync(storeJsonPath, 'utf8'))
    } catch (err) {
      return {
        pnpm: pnpmPkgJson.version,
        packages: {}
      }
    }
  }
  
  export function save (storePath: string, storeJson: StoreJson) {
    const storeJsonPath = path.join(storePath, 'store.json')
    fs.writeFileSync(storeJsonPath, JSON.stringify(storeJson, null, 2), 'utf8')
  }
  