@@ -61,12 +61,11 @@ export default class extends Command {
6161 "columns" : {
6262 "packageName" : { "title" : ansi . hl ( "PACKAGE NAME" ) , "headerAlign" : "center" , "headerValign" : "end" } ,
6363 "branchName" : { "title" : ansi . hl ( "BRANCH NAME" ) , "width" : 15 , "headerAlign" : "center" , "headerValign" : "end" } ,
64+ "previousRelease" : { "title" : ansi . hl ( "PREVIOUS\nRELEASE" ) , "width" : 23 , "align" : "end" , "headerAlign" : "center" } ,
6465 "dirty" : { "title" : ansi . hl ( "IS\nDIRTY" ) , "width" : 7 , "align" : "center" , "format" : value => ( value
6566 ? ansi . error ( " DIRTY " )
6667 : "-" ) } ,
6768 "pushed" : { "title" : ansi . hl ( "NOT\nPUSHED" ) , "width" : 8 , "align" : "end" , "headerAlign" : "center" } ,
68- "lastRelease" : { "title" : ansi . hl ( "LAST\nRELEASE" ) , "width" : 20 , "align" : "end" , "headerAlign" : "center" } ,
69- "previousRelease" : { "title" : ansi . hl ( "PREVIOUS\nRELEASE" ) , "width" : 23 , "align" : "end" , "headerAlign" : "center" } ,
7069 "unreleasedCommits" : { "title" : ansi . hl ( "UNRELEASED\nCOMMITS" ) , "width" : 12 , "align" : "end" , "headerAlign" : "center" } ,
7170 } ,
7271 } ) . pipe ( process . stdout ) ;
@@ -116,14 +115,13 @@ export default class extends Command {
116115 "branchName" : status . head . branch
117116 ? status . head . branch
118117 : ansi . error ( status . head . abbrev ) ,
118+ "previousRelease" : this . #formatVersion( status . previousRelease , pkg . isReleaseEnabled ) + ( status . previousRelease && status . releases ?. lastRelease . eq ( status . previousRelease )
119+ ? " 🚩"
120+ : " " ) ,
119121 "dirty" : status . isDirty ,
120122 "pushed" : currentBranchPushStatus
121123 ? ansi . error ( ` ${ currentBranchPushStatus } ` )
122124 : " - " ,
123- "lastRelease" : this . #formatVersion( status . releases . lastRelease , pkg . isReleaseEnabled ) ,
124- "previousRelease" : this . #formatVersion( status . previousRelease , pkg . isReleaseEnabled ) + ( status . previousRelease && status . releases ?. lastRelease . eq ( status . previousRelease )
125- ? " 🚩"
126- : " " ) ,
127125 "unreleasedCommits" : pkg . isReleaseEnabled
128126 ? ( status . previousReleaseDistance
129127 ? ansi . error ( ` ${ status . previousReleaseDistance } ` )
0 commit comments