hunk.code_window:     const parsedBody = <PackageDocument>(await opts.got.getJSON(url))
       const correctPkg = pickVersionFromRegistryDocument(parsedBody, spec, opts.tag)
       return {
         id: createPkgId(correctPkg),
         fetch: createRemoteTarballFetcher({
           shasum: correctPkg.dist.shasum,
           tarball: correctPkg.dist.tarball
  
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit:       pkg: correctPkg,
  
hunk.file_path: src/resolve/npm.ts
hunk.type: add
file: {
    "name": "pre-and-postinstall-scripts-example",
    "version": "1.0.0",
    "description": "A package that creates files by pre- and postinstall scripts",
    "scripts": {
      "test": "echo \"Error: no test specified\" && exit 1",
      "preinstall": "node create generated-by-preinstall",
      "postinstall": "node create generated-by-postinstall"
    },
    "author": "Zoltan Kochan <zoltan.kochan@gmail.com> (http://kochan.io/)",
    "license": "MIT",
    "repository": {
      "type": "git",
      "url": "https://github.com/rstacruz/pnpm/tree/master/test/packages/postinstall-example"
    }
  }
  