internals/setup.js
/**
 * Remove npm dependencies which are only used by this script
 * @returns {Promise<any>}
 */
Remove npm dependencies which are only used by this script
@returns {Promise}
Remove npm dependencies which are only used by this script @returns { Promise }
async function removeScriptDependencies() {
  const spinner = ora('Uninstalling extraneous dependencies').start()
  try {
    await exec(
      'npm uninstall rimraf compare-versions chalk shelljs read-pkg write-pkg inquirer ora --save-dev'
    )
    spinner.succeed('Extraneous dependencies uninstalled')
  } catch (err) {
    spinner.fail(err)
    throw new Error(err)
  }
}
async function removeScriptDependencies ( ) { const spinner = ora ( 'Uninstalling extraneous dependencies' ) . start ( ) try { await exec ( 'npm uninstall rimraf compare-versions chalk shelljs read-pkg write-pkg inquirer ora --save-dev' ) spinner . succeed ( 'Extraneous dependencies uninstalled' ) } catch ( err ) { spinner . fail ( err ) throw new Error ( err ) } }
Remove npm dependencies which are only used by this script
 @returns {Promise<any>}
Remove npm dependencies which are only used by this script @returns { Promise<any > }