From 1cda3d060ea9223ef7867e2b42f89095cf117a4b Mon Sep 17 00:00:00 2001 From: Dimitri Mitropoulos Date: Mon, 15 Jul 2024 17:39:17 -0400 Subject: [PATCH] adds to ResolvedConfigurationOptions (and the try_fold) --- crates/turborepo-lib/src/config.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/turborepo-lib/src/config.rs b/crates/turborepo-lib/src/config.rs index 8116a9d539256d..e8246e2b845648 100644 --- a/crates/turborepo-lib/src/config.rs +++ b/crates/turborepo-lib/src/config.rs @@ -316,6 +316,7 @@ impl ResolvedConfigurationOptions for RawTurboJson { .map(|spaces_id| spaces_id.into()); opts.ui = self.ui.map(|ui| ui.use_tui()); opts.allow_no_package_manager = self.allow_no_package_manager; + opts.env_mode = self.env_mode; Ok(opts) } } @@ -750,6 +751,9 @@ impl TurborepoConfigBuilder { { acc.allow_no_package_manager = Some(allow_no_package_manager); } + if let Some(env_mode) = current_source_config.env_mode { + acc.env_mode = Some(env_mode); + } acc })