@@ -11,7 +11,7 @@ import { RushConstants } from '../../logic/RushConstants';
1111import { Async } from '@rushstack/node-core-library' ;
1212
1313export class LinkPackageAction extends BaseHotlinkPackageAction {
14- protected readonly _projectList : CommandLineStringListParameter ;
14+ protected readonly _projectListParameter : CommandLineStringListParameter ;
1515
1616 public constructor ( parser : RushCommandLineParser ) {
1717 super ( {
@@ -30,7 +30,7 @@ export class LinkPackageAction extends BaseHotlinkPackageAction {
3030 parser
3131 } ) ;
3232
33- this . _projectList = this . defineStringListParameter ( {
33+ this . _projectListParameter = this . defineStringListParameter ( {
3434 parameterLongName : '--project' ,
3535 required : false ,
3636 argumentName : 'PROJECT' ,
@@ -40,9 +40,9 @@ export class LinkPackageAction extends BaseHotlinkPackageAction {
4040 } ) ;
4141 }
4242
43- protected async getProjectsToLinkAsync ( ) : Promise < Set < RushConfigurationProject > > {
43+ private async _getProjectsToLinkAsync ( ) : Promise < Set < RushConfigurationProject > > {
4444 const projectsToLink : Set < RushConfigurationProject > = new Set ( ) ;
45- const projectNames : readonly string [ ] = this . _projectList . values ;
45+ const projectNames : readonly string [ ] = this . _projectListParameter . values ;
4646
4747 if ( projectNames . length > 0 ) {
4848 for ( const projectName of projectNames ) {
@@ -65,8 +65,11 @@ export class LinkPackageAction extends BaseHotlinkPackageAction {
6565 return projectsToLink ;
6666 }
6767
68- public async hotlinkPackageAsync ( linkedPackagePath : string , hotlinkManager : HotlinkManager ) : Promise < void > {
69- const projectsToLink : Set < RushConfigurationProject > = await this . getProjectsToLinkAsync ( ) ;
68+ protected async hotlinkPackageAsync (
69+ linkedPackagePath : string ,
70+ hotlinkManager : HotlinkManager
71+ ) : Promise < void > {
72+ const projectsToLink : Set < RushConfigurationProject > = await this . _getProjectsToLinkAsync ( ) ;
7073 await Async . forEachAsync (
7174 projectsToLink ,
7275 async ( project ) => {
0 commit comments