Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return progress.wrap(PROGRESS_ID, context, async setProgress => {
setProgress({
status: 'plugin-uninstall',
args: [id]
})
installationStep = 'uninstall'
currentPluginId = id
if (process.env.VUE_CLI_DEBUG && isOfficialPlugin(id)) {
mockUninstall(id, context)
} else {
await uninstallPackage(cwd.get(), getCommand(cwd.get()), null, id)
}
currentPluginId = null
installationStep = null
notify({
title: `Plugin uninstalled`,
message: `Plugin ${id} uninstalled`,
icon: 'done'
})
return getInstallation(context)
})
}