mirror of
https://github.com/denoland/deno.git
synced 2025-10-01 06:31:15 +00:00
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.
This commit is contained in:
parent
a01edb394d
commit
ec968aa5ae
13 changed files with 39 additions and 15 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue