hunk.code_window: import cbRimraf = require('rimraf')
   import path = require('path')
   import getContext, {PnpmContext} from './getContext'
   import getSaveType from '../getSaveType'
   import removeDeps from '../removeDeps'
  
hunk.labels: replace keep keep keep keep keep
hunk.after_edit: import rimraf = require('rimraf-then')
  
hunk.file_path: src/api/uninstall.ts
hunk.type: replace
file: import {StrictPnpmOptions, PnpmOptions} from '../types'
  
  const defaults = () => (<StrictPnpmOptions>{
    fetchRetries: 2,
    fetchRetryFactor: 10,
    fetchRetryMintimeout: 1e4, // 10 seconds
    fetchRetryMaxtimeout: 6e4, // 1 minute
    storePath: 'node_modules/.store',
    globalPath: '~/.pnpm',
    logger: 'pretty',
    ignoreScripts: false,
    linkLocal: false,
    strictSsl: true,
    tag: 'latest',
    production: process.env.NODE_ENV === 'production',
    cwd: process.cwd()
  })
  
  export default (opts?: PnpmOptions): StrictPnpmOptions => {
    return Object.assign({}, defaults(), opts)
  }
  