preprend embark to plugin name
This commit is contained in:
parent
ddb1872db5
commit
3e1db81d5b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue