diff options
author | Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> | 2024-11-08 12:45:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-08 12:45:30 -0800 |
commit | d4f1bd3dacf54c4625eef7828341b39286ead8cb (patch) | |
tree | eab65372c77092af78bfca7b6865ed72575b0eb6 /cli | |
parent | b482a50299ae4f636a186038460e54af65e2b627 (diff) |
fix(install): cache jsr deps from all workspace config files (#26779)
Fixes #26772.
I wasn't aware that the `imports()` method only returned the workspace
root imports
Diffstat (limited to 'cli')
-rw-r--r-- | cli/tools/registry/pm/cache_deps.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/tools/registry/pm/cache_deps.rs b/cli/tools/registry/pm/cache_deps.rs index 365622d11..d3c8da868 100644 --- a/cli/tools/registry/pm/cache_deps.rs +++ b/cli/tools/registry/pm/cache_deps.rs @@ -44,7 +44,11 @@ pub async fn cache_top_level_deps( let mut seen_reqs = std::collections::HashSet::new(); - for entry in import_map.imports().entries() { + for entry in import_map.imports().entries().chain( + import_map + .scopes() + .flat_map(|scope| scope.imports.entries()), + ) { let Some(specifier) = entry.value else { continue; }; |