Skip to content

Commit

Permalink
fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitropoulos committed Aug 1, 2024
1 parent b510f03 commit 57d7f1f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions crates/turborepo-lib/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use turborepo_dirs::config_dir;
use turborepo_ui::UI;

use crate::{
cli::Command,
config::{ConfigurationOptions, Error as ConfigError, TurborepoConfigBuilder},
Args,
};
Expand Down Expand Up @@ -88,9 +89,18 @@ impl CommandBase {
.with_daemon(self.args.run_args.as_ref().and_then(|args| args.daemon()))
.with_env_mode(
self.args
.execution_args
.command
.as_ref()
.and_then(|args| args.env_mode),
.and_then(|c| match c {
Command::Run { execution_args, .. } => execution_args.env_mode,
_ => None,
})
.or_else(|| {
self.args
.execution_args
.as_ref()
.and_then(|args| args.env_mode)
}),
)
.build()
}
Expand Down

0 comments on commit 57d7f1f

Please sign in to comment.