summaryrefslogtreecommitdiff
path: root/cli/tools/registry/pm/cache_deps.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/registry/pm/cache_deps.rs')
-rw-r--r--cli/tools/registry/pm/cache_deps.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/tools/registry/pm/cache_deps.rs b/cli/tools/registry/pm/cache_deps.rs
index 365622d11..9883deb1d 100644
--- a/cli/tools/registry/pm/cache_deps.rs
+++ b/cli/tools/registry/pm/cache_deps.rs
@@ -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);
}
}