1
0
Fork 0
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:
Nathan Whitaker 2024-10-24 16:46:48 -07:00 committed by GitHub
parent e162306247
commit 0060e74779
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
} }
} }