summaryrefslogtreecommitdiff
path: root/cli/tools
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-10-23 20:12:52 -0700
committerGitHub <noreply@github.com>2024-10-23 20:12:52 -0700
commit6d587cbfc800a627efb32d377b260954ccd7a1ed (patch)
tree0a618ec90097fb36807c5d07adb9696c4d735fee /cli/tools
parent69e1d7a4edb45c8b4cb15f64ee89cec8a693be5e (diff)
fix(install): cache all exports of JSR packages listed in `deno.json` (#26501)
Fixes #26498. This was a sort of intentional decision originally, as I wanted to avoid caching extra files that may not be needed. It seems like that behavior is unintuitive, so I propose we cache all of the exports of listed jsr packages when you run a bare `deno install`.
Diffstat (limited to 'cli/tools')
-rw-r--r--cli/tools/registry/pm/cache_deps.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/cli/tools/registry/pm/cache_deps.rs b/cli/tools/registry/pm/cache_deps.rs
index b4cd1c253..365622d11 100644
--- a/cli/tools/registry/pm/cache_deps.rs
+++ b/cli/tools/registry/pm/cache_deps.rs
@@ -89,10 +89,6 @@ pub async fn cache_top_level_deps(
while let Some(info_future) = info_futures.next().await {
if let Some((specifier, info)) = info_future {
- if info.export(".").is_some() {
- roots.push(specifier.clone());
- continue;
- }
let exports = info.exports();
for (k, _) in exports {
if let Ok(spec) = specifier.join(k) {