hunk.code_window:         if (err.code === 'ENOENT') return null
           throw err
         }
       },
     }
     return project
   }
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit:     loadCurrentShrinkwrap: async () => {
         try {
           return await loadYamlFile<any>('node_modules/.shrinkwrap.yaml') // tslint:disable-line
         } catch (err) {
           if (err.code === 'ENOENT') return null
           throw err
         }
       },
  
hunk.file_path: test/utils/prepare.ts
hunk.type: add
file: import path = require('path')
  import {Package} from '../types'
  import readPackageJsonCB = require('read-package-json')
  import thenify = require('thenify')
  
  const readPackageJson = thenify(readPackageJsonCB)
  
  export default function readPkg (pkgPath: string): Promise<Package> {
    return readPackageJson(pkgPath)
  }
  
  export function fromDir (pkgPath: string): Promise<Package> {
    return readPkg(path.join(pkgPath, 'package.json'))
  }
  