Skip to content

Commit

Permalink
Build CLI: Update yarn install in production mode
Browse files Browse the repository at this point in the history
`yarn install --production` is deprecated on the used version on yarn.
  • Loading branch information
AmmarAbouZor committed Aug 29, 2024
1 parent 99d7e85 commit 0f7dac8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions cli/src/target/target_kind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,15 @@ impl TargetKind {
pub fn install_cmd(&self, prod: bool) -> Option<ProcessCommand> {
match self {
TargetKind::Ts => {
let mut args = vec![String::from("install")];
if prod {
args.push("--production".into());
}
let args = if prod {
vec![
String::from("workspaces"),
String::from("focus"),
String::from("--production"),
]
} else {
vec![String::from("install")]
};

let command = yarn_command(args);

Expand Down

0 comments on commit 0f7dac8

Please sign in to comment.