Skip to content

Commit

Permalink
fix: fix overriding package manager from cli
Browse files Browse the repository at this point in the history
  • Loading branch information
norskeld committed Mar 9, 2023
1 parent 16999ad commit 34921d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ impl Cli {
let matches = &self.matches;

let pm_matrix = (
matches.contains_id("npm"),
matches.contains_id("pnpm"),
matches.contains_id("yarn"),
matches.get_flag("npm"),
matches.get_flag("pnpm"),
matches.get_flag("yarn"),
);

let pm_from_env = env::var_os("SX_PM").map_or(PackageManager::Npm, |value| {
Expand Down

0 comments on commit 34921d0

Please sign in to comment.