Skip to content

Commit

Permalink
fix: Ensure proper top name resolution in case of external installs
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Jun 25, 2019
1 parent 1682e04 commit 80c8465
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/private/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ module.exports = async (packageContext, userConfiguration, inputOptions, progres
return;
}
if (packagesMeta[name]) {
const packageName = name;
// Named as maintained but located elsewhere, ensure to not use same name;
name = packageContext.name = `${ name } (external)`;
name = packageContext.name = `${ packageName } (external)`;
if (progressData.topPackageName === packageName) progressData.topPackageName = name;
}

// Ensure to emit "start" event in next event loop
Expand Down

0 comments on commit 80c8465

Please sign in to comment.