Skip to content

Commit

Permalink
fix(install): don't cache json exports of JSR packages (for now) (#26530
Browse files Browse the repository at this point in the history
)

Temporary fix for #26509, so people don't get errors.
  • Loading branch information
nathanwhit authored and bartlomieju committed Oct 25, 2024
1 parent f84c007 commit eba48ac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cli/tools/registry/pm/cache_deps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,13 @@ 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, _) in exports {
for (k, v) 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);
}
}
Expand Down

0 comments on commit eba48ac

Please sign in to comment.