File tree Expand file tree Collapse file tree 3 files changed +31
-1
lines changed
libraries/rush-lib/src/logic/installManager Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "changes" : [
3
+ {
4
+ "packageName" : " @microsoft/rush" ,
5
+ "comment" : " Fix pnpm's install status printing when pnpm custom tips are defined." ,
6
+ "type" : " none"
7
+ }
8
+ ],
9
+ "packageName" : " @microsoft/rush"
10
+ }
Original file line number Diff line number Diff line change 103
103
"policyName" : " rush" ,
104
104
"definitionName" : " lockStepVersion" ,
105
105
"version" : " 5.107.0" ,
106
- "nextBump" : " minor " ,
106
+ "nextBump" : " patch " ,
107
107
"mainProject" : " @microsoft/rush"
108
108
}
109
109
]
Original file line number Diff line number Diff line change @@ -493,6 +493,26 @@ export class WorkspaceInstallManager extends BaseInstallManager {
493
493
args . push ( '--recursive' ) ;
494
494
args . push ( '--link-workspace-packages' , 'false' ) ;
495
495
496
+ if ( process . stdout . isTTY ) {
497
+ // If we're on a TTY console and something else didn't set a `--reporter` parameter,
498
+ // explicitly set the default reporter. This fixes an issue where, when the pnpm
499
+ // output is being monitored to match custom tips, pnpm will detect a non-TTY
500
+ // stdout stream and use the `append-only` reporter.
501
+ //
502
+ // See docs here: https://pnpm.io/cli/install#--reportername
503
+ let includesReporterArg : boolean = false ;
504
+ for ( const arg of args ) {
505
+ if ( arg . startsWith ( '--reporter' ) ) {
506
+ includesReporterArg = true ;
507
+ break ;
508
+ }
509
+ }
510
+
511
+ if ( ! includesReporterArg ) {
512
+ args . push ( '--reporter' , 'default' ) ;
513
+ }
514
+ }
515
+
496
516
for ( const arg of this . options . pnpmFilterArguments ) {
497
517
args . push ( arg ) ;
498
518
}
You can’t perform that action at this time.
0 commit comments