diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-11-11 21:26:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 21:26:14 -0500 |
commit | d81065cff9d2ac64f73ec29edeb6dae1fdf87f04 (patch) | |
tree | 90f5bf51422b0c39eed043c32f67ea1103a78a37 /cli/npm/resolvers/mod.rs | |
parent | 06bd9e9e1640150f98857a74fea0cc1a3b3386a7 (diff) |
feat(unstable/npm): module graph derived npm specifier resolution order (#16602)
Diffstat (limited to 'cli/npm/resolvers/mod.rs')
-rw-r--r-- | cli/npm/resolvers/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/npm/resolvers/mod.rs b/cli/npm/resolvers/mod.rs index bc6cb4060..f7c65c9e9 100644 --- a/cli/npm/resolvers/mod.rs +++ b/cli/npm/resolvers/mod.rs @@ -247,6 +247,8 @@ impl NpmPackageResolver { if self.no_npm { let fmt_reqs = packages .iter() + .collect::<HashSet<_>>() // prevent duplicates + .iter() .map(|p| format!("\"{}\"", p)) .collect::<Vec<_>>() .join(", "); |