File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
libraries/rush-lib/src/logic Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -268,10 +268,10 @@ export class Autoinstaller {
268268
269269 // Write the last-install.flag file so that a subsequent "rush install-autoinstaller"
270270 // will not perform a redundant install.
271- await this . _createFlagsAsync ( ) ;
271+ await this . _createFlagsAsync ( packageJsonEditor . saveToObject ( ) ) ;
272272 }
273273
274- private async _createFlagsAsync ( ) : Promise < void > {
274+ private async _createFlagsAsync ( packageJson : IPackageJson ) : Promise < void > {
275275 const autoinstallerFullPath : string = this . folderFullPath ;
276276
277277 // Example: .../common/autoinstallers/my-task/.rush/temp
@@ -281,9 +281,6 @@ export class Autoinstaller {
281281 'temp'
282282 ) ;
283283
284- const packageJsonPath : string = path . join ( autoinstallerFullPath , 'package.json' ) ;
285- const packageJson : IPackageJson = JsonFile . load ( packageJsonPath ) ;
286-
287284 const lastInstallFlag : LastInstallFlag = new LastInstallFlag ( lastInstallFlagPath , {
288285 node : process . versions . node ,
289286 packageManager : this . _rushConfiguration . packageManager ,
You can’t perform that action at this time.
0 commit comments