Skip to content

Commit ecdbef8

Browse files
author
Nicholas Pape
authored
Fix a regression where 'rush generate' followed by 'rush install' was not incremental (microsoft#455)
1 parent a0cafbd commit ecdbef8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/rush-lib/src/cli/actions/GenerateAction.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ export default class GenerateAction extends BaseRushAction {
199199
// won't do anything immediately after "rush generate". This is a minor performance
200200
// optimization, but it helps people to understand the semantics of the commands.
201201
if (fsx.existsSync(installManager.commonNodeModulesMarkerFilename)) {
202-
fsx.writeFileSync(installManager.commonNodeModulesMarkerFilename, '');
202+
fsx.writeFileSync(installManager.commonNodeModulesMarkerFilename,
203+
`${this.rushConfiguration.packageManager}@${this.rushConfiguration.packageManagerToolVersion}`);
203204
} else {
204205
// Sanity check -- since we requested a clean install above, this should never occur
205206
throw new Error('The install flag file is missing');

0 commit comments

Comments
 (0)