hunk.code_window:   const pkgJson = await readPkg()
     t.equal(pkgJson.dependencies, undefined, 'is-negative has been removed from dependencies')
   })
   test('uninstall scoped package', async function (t) {
     const project = prepare(t)
     await installPkgs(['@zkochan/logger@0.1.0'], testDefaults({ save: true }))
  
hunk.labels: keep keep keep add keep keep keep
hunk.after_edit: test('uninstall package and remove from appropriate property', async function (t: tape.Test) {
     const project = prepare(t)
     await installPkgs(['is-negative@2.1.0'], testDefaults({ saveDev: true }))
     await uninstall(['is-negative'], testDefaults())
     await project.storeHasNot('is-negative', '2.1.0')
     await project.hasNot('is-negative')
     const pkgJson = await readPkg()
     t.equal(pkgJson.dependencies, undefined, 'is-negative has been removed from dependencies')
   })
  
hunk.file_path: test/uninstall.ts
hunk.type: add
file: import loadJsonFile = require('load-json-file')
  import writePkg = require('write-pkg')
  import {DependenciesType} from './getSaveType'
  import {Package} from './types'
  
  export default async function (
    pkgJsonPath: string,
    removedPackages: string[],
    saveType: DependenciesType
  ): Promise<Package> {
    const packageJson = await loadJsonFile(pkgJsonPath)
    packageJson[saveType] = packageJson[saveType]
  
    if (!packageJson[saveType]) return packageJson
  
    removedPackages.forEach(dependency => {
      delete packageJson[saveType][dependency]
    })
  
    await writePkg(pkgJsonPath, packageJson)
    return packageJson
  }
  