hunk.code_window: import fs = require('mz/fs')
   import path = require('path')
   import linkDir from 'link-dir'
   import symlinkDir from 'symlink-dir'
   import exists = require('path-exists')
   import logger from 'pnpm-logger'
   import R = require('ramda')
   import pLimit = require('p-limit')
  
hunk.labels: keep keep replace keep keep keep keep keep
hunk.after_edit: import linkDir = require('link-dir')
  
hunk.file_path: src/link/index.ts
hunk.type: replace
file: import {PnpmOptions} from './types'
  export type DependenciesType = 'dependencies' | 'devDependencies' | 'optionalDependencies'
  
  export default function getSaveType (opts: PnpmOptions): DependenciesType {
    if (opts.saveDev) return 'devDependencies'
    if (opts.saveOptional) return 'optionalDependencies'
    return 'dependencies'
  }
  