hunk.code_window:     "read-pkg-up": "1.0.1",
       "registry-auth-token": "3.0.1",
       "registry-url": "3.1.0",
       "retry": "0.10.0",
       "rimraf": "2.5.4",
       "semver": "5.3.0",
       "sorted-object": "2.0.1",
       "supports-color": "3.1.2",
       "tar-fs": "1.13.2",
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit:     "rimraf-then": "1.0.0",
  
hunk.file_path: package.json
hunk.type: replace
file: import requireJson from './fs/requireJson'
  import writeJson from './fs/writeJson'
  import {DependenciesType} from './getSaveType'
  
  export default async function (pkgJsonPath: string, removedPackages: string[], saveType: DependenciesType) {
    const packageJson = requireJson(pkgJsonPath)
    packageJson[saveType] = packageJson[saveType]
    if (!packageJson[saveType]) return
  
    removedPackages.forEach(dependency => {
      delete packageJson[saveType][dependency]
    })
  
    return writeJson(pkgJsonPath, packageJson)
  }
  