mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
fix(install): don't cache json exports of JSR packages (for now) (#26530)
Temporary fix for #26509, so people don't get errors.
This commit is contained in:
parent
e162306247
commit
0060e74779
1 changed files with 6 additions and 1 deletions
|
@ -90,8 +90,13 @@ pub async fn cache_top_level_deps(
|
||||||
while let Some(info_future) = info_futures.next().await {
|
while let Some(info_future) = info_futures.next().await {
|
||||||
if let Some((specifier, info)) = info_future {
|
if let Some((specifier, info)) = info_future {
|
||||||
let exports = info.exports();
|
let exports = info.exports();
|
||||||
for (k, _) in exports {
|
for (k, v) in exports {
|
||||||
if let Ok(spec) = specifier.join(k) {
|
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);
|
roots.push(spec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue