preprend embark to plugin name

This commit is contained in:
Jonathan Rainville 2018-09-13 10:29:03 -04:00
parent ddb1872db5
commit 3e1db81d5b
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ class PluginCommand {
let npmInstall = ['npm', 'install', '--save'];
npmInstall = npmInstall.concat(cmdArray.slice(2));
let npmPackage = npmInstall[3];
if (!npmPackage.startsWith('embark')) {
npmPackage = 'embark-' + npmPackage;
}
self.embark.logger.info(__('Installing npm package %s...', npmPackage));
async.waterfall([
function npmInstallAsync(cb) {