summaryrefslogtreecommitdiff
path: root/cli/tools/info.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-05-17 17:38:50 -0400
committerGitHub <noreply@github.com>2023-05-17 17:38:50 -0400
commit41f618a1df6bb8c66d7968ac64456139b9f4c197 (patch)
treedbcc67e009cf70099be82ea3774669e8aefc6023 /cli/tools/info.rs
parentad223362451688c13a4441563210f58bdb046a78 (diff)
fix(npm): improved optional dependency support (#19135)
Note: If the package information has already been cached, then this requires running with `--reload` or for the registry information to be fetched some other way (ex. the cache busting). Closes #15544 --------- Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tools/info.rs')
-rw-r--r--cli/tools/info.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/tools/info.rs b/cli/tools/info.rs
index d491f55dc..14c85f4d8 100644
--- a/cli/tools/info.rs
+++ b/cli/tools/info.rs
@@ -217,7 +217,8 @@ fn add_npm_packages_to_json(
}
}
- let mut sorted_packages = snapshot.all_packages();
+ let mut sorted_packages =
+ snapshot.all_packages_for_every_system().collect::<Vec<_>>();
sorted_packages.sort_by(|a, b| a.pkg_id.cmp(&b.pkg_id));
let mut json_packages = serde_json::Map::with_capacity(sorted_packages.len());
for pkg in sorted_packages {