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-install',
args: [id]
})
currentPluginId = id
installationStep = 'install'
if (process.env.VUE_CLI_DEBUG && isOfficialPlugin(id)) {
mockInstall(id, context)
} else {
await installPackage(cwd.get(), getCommand(cwd.get()), null, id)
}
await initPrompts(id, context)
installationStep = 'config'
notify({
title: `Plugin installed`,
message: `Plugin ${id} installed, next step is configuration`,
icon: 'done'
})
return getInstallation(context)
})
}