From 3d853b550adbd505e76a8303204ae5da252ef9c4 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Mon, 4 May 2020 19:21:09 +0200 Subject: [PATCH] fix(cli): avoid infinite loop on scoped dependencies --- cli/src/cordova.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/cordova.ts b/cli/src/cordova.ts index c7952bff2e..91d988f7b1 100644 --- a/cli/src/cordova.ts +++ b/cli/src/cordova.ts @@ -310,7 +310,7 @@ export async function checkAndInstallDependencies(config: Config, plugins: Plugi if (allDependencies) { await Promise.all(allDependencies.map(async (dep: any) => { let plugin = dep.$.id; - if (plugin.includes('@')) { + if (plugin.includes('@') && plugin.indexOf('@') !== 0) { plugin = plugin.split('@')[0]; } if (cordovaPlugins.filter(p => p.id === plugin || p.xml.$.id === plugin).length === 0) {