From dd300363165d0bd783ec9a5cc42992316784498c Mon Sep 17 00:00:00 2001 From: Adrian Gierakowski Date: Fri, 21 Jan 2022 15:48:22 +0000 Subject: [PATCH] bugfix: inject-build: storedBuildState handling call restoreInstallState so that state written by previous invocations to inject-build doesn't get lost before this fix, all but the last one of the injected isolated builds would be re-run when building main package --- src/InjectBuildCommand.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/InjectBuildCommand.ts b/src/InjectBuildCommand.ts index 671a473..21c0506 100644 --- a/src/InjectBuildCommand.ts +++ b/src/InjectBuildCommand.ts @@ -28,6 +28,9 @@ export default class InjectBuildCommand extends Command { ); const { project } = await Project.find(configuration, this.context.cwd); + await project.restoreInstallState({ + restoreResolutions: false, + }); const report = await StreamReport.start( { configuration, stdout: this.context.stdout }, async (report) => {