Skip to content

Commit

Permalink
fix(cli): avoid infinite loop on scoped dependencies (#2868)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored May 4, 2020
1 parent 1b3f0ec commit 69d62f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/cordova.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 69d62f7

Please sign in to comment.