Skip to content

Commit 0060e74

Browse files
authored
fix(install): don't cache json exports of JSR packages (for now) (denoland#26530)
Temporary fix for denoland#26509, so people don't get errors.
1 parent e162306 commit 0060e74

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cli/tools/registry/pm/cache_deps.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,13 @@ pub async fn cache_top_level_deps(
9090
while let Some(info_future) = info_futures.next().await {
9191
if let Some((specifier, info)) = info_future {
9292
let exports = info.exports();
93-
for (k, _) in exports {
93+
for (k, v) in exports {
9494
if let Ok(spec) = specifier.join(k) {
95+
if v.ends_with(".json") {
96+
// TODO(nathanwhit): this should work, there's a bug with
97+
// json roots in deno_graph. skip it for now
98+
continue;
99+
}
95100
roots.push(spec);
96101
}
97102
}

0 commit comments

Comments
 (0)