File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ export function createKeyResolver(
99 const nameEcosystems = new Map < string , EcosystemKey [ ] > ( ) ;
1010 for ( const p of packages ) {
1111 const existingPath = pathEcosystems . get ( p . path ) ?? [ ] ;
12- existingPath . push ( p . ecosystem ) ;
12+ if ( ! existingPath . includes ( p . ecosystem ) ) existingPath . push ( p . ecosystem ) ;
1313 pathEcosystems . set ( p . path , existingPath ) ;
1414
1515 const existingName = nameEcosystems . get ( p . name ) ?? [ ] ;
16- existingName . push ( p . ecosystem ) ;
16+ if ( ! existingName . includes ( p . ecosystem ) ) existingName . push ( p . ecosystem ) ;
1717 nameEcosystems . set ( p . name , existingName ) ;
1818 }
1919
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export function buildDependencyBumpNote(
7878
7979export function renderPackageVersionSummary (
8080 packageInfos : ResolvedPackageConfig [ ] ,
81- currentVersions : Map < string , string > ,
81+ _currentVersions : Map < string , string > ,
8282 selectedVersions : Map < string , string > ,
8383 options : {
8484 activePackage ?: string ;
@@ -88,7 +88,7 @@ export function renderPackageVersionSummary(
8888 const lines = [ t ( "output.packages" ) ] ;
8989
9090 for ( const pkg of packageInfos ) {
91- const currentVersion = currentVersions . get ( pkg . path ) ?? pkg . version ;
91+ const currentVersion = pkg . version ;
9292 const selectedVersion = selectedVersions . get ( packageKey ( pkg ) ) ;
9393 const prefix = options . activePackage === pkg . path ? "> " : " " ;
9494
You can’t perform that action at this time.
0 commit comments