hunk.code_window:     "semver": "^5.3.0",
       "ssri": "^4.1.3",
       "symlink-dir": "^1.0.3",
       "unpack-stream": "^1.1.0",
       "update-notifier": "^2.1.0",
       "write-json-file": "^2.0.0",
       "write-pkg": "^3.0.1",
       "write-yaml-file": "^1.0.0"
     },
  
hunk.labels: keep keep keep keep add keep keep keep keep
hunk.after_edit:     "write-file-atomic": "^2.1.0",
  
hunk.file_path: package.json
hunk.type: add
file: import path = require('path')
  import normalize = require('normalize-path')
  
  export default function pkgIdToFilename (pkgId: string) {
    if (pkgId.indexOf('file:') !== 0) return pkgId
  
    return `local/${encodeURIComponent(normalize(path.resolve(pkgId.slice(5))))}`
  }
  