hunk.code_window:         await rimraf(target)
         }
         logStatus({status: 'download-queued', pkg: opts.loggedPkg})
         await fetchResolution(opts.resolution, targetStage, {got: opts.got, loggedPkg: opts.loggedPkg})
         // fs.rename(oldPath, newPath) is an atomic operation, so we do it at the
         // end
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:       await fetchResolution(opts.resolution, targetStage, {
           got: opts.got,
           loggedPkg: opts.loggedPkg,
           linkLocal: opts.linkLocal,
         })
  
hunk.file_path: src/install/fetch.ts
hunk.type: replace
file: import path = require('path')
  import {Package} from '../types'
  import mem = require('mem')
  import loadJsonFile = require('load-json-file')
  
  const cachedReadPkg = mem(loadJsonFile)
  
  /**
   * Works identically to require('/path/to/file.json'), but safer.
   */
  export default function requireJson (pkgJsonPath: string): Package {
    pkgJsonPath = path.resolve(pkgJsonPath)
    return cachedReadPkg(pkgJsonPath)
  }
  
  export const ignoreCache: Function = loadJsonFile
  