diff options
author | Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> | 2024-10-25 13:19:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-25 20:19:03 +0000 |
commit | ec968aa5aec068e92fb554fc7192d912bcddb82c (patch) | |
tree | 48e158f24bef5f4ca85cbc5eb5e3a32acccdad7a /cli/tools | |
parent | a01edb394d2785b7d37da6435bb37381efc376ea (diff) |
fix(install): cache json exports of JSR packages (#26552)
Fixes https://github.com/denoland/deno/issues/26509.
Ended up being a `deno_graph` bug causing the error to surface. This PR
updates `deno_graph` to pick up the fix and reverts the temporary
workaround that skipped JSON exports.
Diffstat (limited to 'cli/tools')
-rw-r--r-- | cli/tools/registry/pm/cache_deps.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cli/tools/registry/pm/cache_deps.rs b/cli/tools/registry/pm/cache_deps.rs index 9883deb1d..365622d11 100644 --- a/cli/tools/registry/pm/cache_deps.rs +++ b/cli/tools/registry/pm/cache_deps.rs @@ -90,13 +90,8 @@ pub async fn cache_top_level_deps( while let Some(info_future) = info_futures.next().await { if let Some((specifier, info)) = info_future { let exports = info.exports(); - for (k, v) in exports { + for (k, _) in exports { if let Ok(spec) = specifier.join(k) { - if v.ends_with(".json") { - // TODO(nathanwhit): this should work, there's a bug with - // json roots in deno_graph. skip it for now - continue; - } roots.push(spec); } } |