@@ -88,12 +88,10 @@ const commitMatches = childProcess
88
88
const componentPkgs = updatedPkgs . filter ( ( { name} ) => name . indexOf ( '@material' ) === 0 ) ;
89
89
const mdcPkg = updatedPkgs . find ( ( { name} ) => name === 'material-components-web' ) ;
90
90
const newPkgVersions = collectNewPkgVersions ( componentPkgs , commitMatches ) ;
91
- const newMDCVersion = {
91
+ const newMDCVersion = Object . assign ( collectMDCVersion ( mdcPkg , newPkgVersions ) , {
92
92
name : 'material-components-web' ,
93
- version : collectMDCVersion ( mdcPkg , newPkgVersions ) ,
94
- changeType : 'N/A' ,
95
93
causedByCommit : 'N/A' ,
96
- } ;
94
+ } ) ;
97
95
98
96
const allPkgVersions = [ newMDCVersion ] . concat ( newPkgVersions ) ;
99
97
writeSummaryToScreen ( allPkgVersions ) ;
@@ -125,8 +123,8 @@ function determineVersion(pkg, commitInfos) {
125
123
126
124
return commitInfos . reduce ( pickBestVersionInfo ( pkg ) , {
127
125
version : currentVersion ,
128
- changeType : '' ,
129
- causedByCommit : '' ,
126
+ changeType : 'patch ' ,
127
+ causedByCommit : '(dependency update - part of packages to be updated but no explicit commits referencing it) ' ,
130
128
} ) ;
131
129
}
132
130
@@ -175,10 +173,13 @@ function collectMDCVersion(mdcPkg, newPkgVersions) {
175
173
[ VersionType . MINOR ] : 1 ,
176
174
[ VersionType . MAJOR ] : 2 ,
177
175
} ;
178
- const overallChangeType = [ ...changeTypes ]
179
- . sort ( ( ct1 , ct2 ) => versionRanks [ ct1 ] - versionRanks [ ct2 ] )
180
- . pop ( ) ;
181
- return semver . inc ( currentVersion , overallChangeType ) || '(no update needed)' ;
176
+ const overallChangeTypes = [ ...changeTypes ]
177
+ . sort ( ( ct1 , ct2 ) => versionRanks [ ct1 ] - versionRanks [ ct2 ] ) ;
178
+ const overallChangeType = overallChangeTypes . pop ( ) ;
179
+ return {
180
+ version : semver . inc ( currentVersion , overallChangeType ) || '(no update needed)' ,
181
+ changeType : overallChangeType ,
182
+ } ;
182
183
}
183
184
184
185
function writeSummary ( pkgVersions , performWrite ) {
0 commit comments