import getInstallCmd from './getInstallCmd' ; param deps param isDev param isMonorepo export default function getInstallDepsCmd ( deps , isDev = false , isMonorepo = false ) { const cmd = getInstallCmd ( ) ; if ( cmd === 'npm' ) { return `npm add ${ deps . join ( ' ' ) } ${ isDev ? '--save' : '--save-dev' }` . trim ( ) ; } return `yarn add ${ deps . join ( ' ' ) }${ isDev ? ' --dev' : '' } ${ isMonorepo ? '-W' : '' }` . trim ( ) ; }