File tree Expand file tree Collapse file tree 2 files changed +11
-20
lines changed
common/changes/@microsoft/rush
libraries/rush-lib/src/cli/actions Expand file tree Collapse file tree 2 files changed +11
-20
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "changes" : [
3
+ {
4
+ "packageName" : " @microsoft/rush" ,
5
+ "comment" : " Fix a recent regression where `rush deploy` did not correctly apply the `additionalProjectsToInclude` setting (GitHub #4683)" ,
6
+ "type" : " none"
7
+ }
8
+ ],
9
+ "packageName" : " @microsoft/rush"
10
+ }
Original file line number Diff line number Diff line change @@ -103,25 +103,6 @@ export class DeployAction extends BaseRushAction {
103
103
} ) ;
104
104
}
105
105
106
- private _getDependencyProjects ( project : RushConfigurationProject ) : Set < RushConfigurationProject > {
107
- const projects : Set < RushConfigurationProject > = new Set ( ) ;
108
- const queue : RushConfigurationProject [ ] = [ project ] ;
109
- const visited : Set < RushConfigurationProject > = new Set ( ) ;
110
-
111
- while ( queue . length > 0 ) {
112
- const _project : RushConfigurationProject = queue . pop ( ) ! ;
113
- projects . add ( _project ) ;
114
- for ( const dependency of _project . dependencyProjects ) {
115
- if ( visited . has ( dependency ) ) {
116
- continue ;
117
- }
118
- queue . push ( dependency ) ;
119
- }
120
- }
121
-
122
- return projects ;
123
- }
124
-
125
106
protected async runAsync ( ) : Promise < void > {
126
107
const scenarioName : string | undefined = this . _scenario . value ;
127
108
const { DeployScenarioConfiguration } = await import ( '../../logic/deploy/DeployScenarioConfiguration' ) ;
@@ -177,7 +158,7 @@ export class DeployAction extends BaseRushAction {
177
158
throw new Error ( `The specified deployment project "${ mainProjectName } " was not found in rush.json` ) ;
178
159
}
179
160
180
- const projects : Set < RushConfigurationProject > = this . _getDependencyProjects ( rushConfigurationProject ) ;
161
+ const projects : RushConfigurationProject [ ] = this . rushConfiguration . projects ;
181
162
if ( this . rushConfiguration . packageManager === 'pnpm' ) {
182
163
for ( const project of projects ) {
183
164
const pnpmfileConfiguration : PnpmfileConfiguration = await PnpmfileConfiguration . initializeAsync (
You can’t perform that action at this time.
0 commit comments