feat(unstable/npm): module graph derived npm specifier resolution order (#16602)

This commit is contained in:
David Sherret 2022-11-11 21:26:14 -05:00 committed by GitHub
parent 06bd9e9e16
commit d81065cff9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 926 additions and 268 deletions

View file

@ -246,6 +246,8 @@ impl NpmPackageResolver {
if self.no_npm {
let fmt_reqs = packages
.iter()
.collect::<HashSet<_>>() // prevent duplicates
.iter()
.map(|p| format!("\"{}\"", p))
.collect::<Vec<_>>()