hunk.code_window: function removeBins (uninstalledPkg: string, store: string, root: string) {
     const uninstalledPkgJson = requireJson(path.join(store, uninstalledPkg, '_/package.json'))
     const bins = binify(uninstalledPkgJson)
     Object.keys(bins).forEach(bin => cbRimraf.sync(path.join(root, 'node_modules/.bin', bin)))
   }
   export function removePkgFromStore (pkgId: string, store: string) {
     return rimraf(path.join(store, pkgId))
  
hunk.labels: keep keep keep replace keep keep keep keep
hunk.after_edit:   return Promise.all(
       Object.keys(bins).map(bin => rimraf(path.join(root, 'node_modules/.bin', bin)))
     )
  
hunk.file_path: src/api/uninstall.ts
hunk.type: replace
file: language: node_js
  node_js:
    - 4
    - 6
  sudo: false
  before_install:
    - npm install -g pnpm
  install:
    - pnpm install
  script:
    - npm test
    - if [[ $TRAVIS_NODE_VERSION == "4" ]]; then npm run docs:build; fi
  after_success:
    - if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then ./node_modules/.bin/git-update-ghpages -e; fi
  env:
    global:
      - CC=clang CXX=clang++ npm_config_clang=1
      - GIT_NAME: Travis CI
      - GIT_EMAIL: nobody@nobody.org
      - GITHUB_REPO: rstacruz/pnpm
      - GIT_SOURCE: _docpress
  