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
This commit is contained in:
Adrian Gierakowski
2022-01-21 15:48:22 +00:00
parent e88f28c29a
commit dd30036316
+3
View File
@@ -28,6 +28,9 @@ export default class InjectBuildCommand extends Command<CommandContext> {
);
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) => {