summaryrefslogtreecommitdiff
path: root/cli/tools/registry
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-01-31 22:15:22 -0500
committerGitHub <noreply@github.com>2024-02-01 03:15:22 +0000
commit4b7c6049ef9d40394eb823859c82cbf8d293430d (patch)
tree61e6de7c69c9d00faeef0ff7e6c223224a53de9e /cli/tools/registry
parent830d096b66696ad9f4e67b3ed8460fb1ff7a9170 (diff)
refactor: load bytes in deno_graph (#22212)
Upgrades deno_graph to 0.64 where deno_graph is now responsible for turning bytes into a string. This is in preparation for Wasm modules.
Diffstat (limited to 'cli/tools/registry')
-rw-r--r--cli/tools/registry/graph.rs8
-rw-r--r--cli/tools/registry/publish_order.rs2
2 files changed, 5 insertions, 5 deletions
diff --git a/cli/tools/registry/graph.rs b/cli/tools/registry/graph.rs
index 2a3b4cc17..0bee5fe8a 100644
--- a/cli/tools/registry/graph.rs
+++ b/cli/tools/registry/graph.rs
@@ -122,7 +122,7 @@ pub fn collect_invalid_external_imports(
let ModuleEntryRef::Module(module) = entry else {
continue;
};
- let Some(module) = module.esm() else {
+ let Some(module) = module.js() else {
continue;
};
@@ -158,10 +158,10 @@ pub fn collect_fast_check_type_graph_diagnostics(
let Ok(Some(module)) = graph.try_get_prefer_types(&specifier) else {
continue;
};
- let Some(esm_module) = module.esm() else {
+ let Some(es_module) = module.js() else {
continue;
};
- if let Some(diagnostic) = esm_module.fast_check_diagnostic() {
+ if let Some(diagnostic) = es_module.fast_check_diagnostic() {
for diagnostic in diagnostic.flatten_multiple() {
if !seen_diagnostics.insert(diagnostic.message_with_range_for_test())
{
@@ -179,7 +179,7 @@ pub fn collect_fast_check_type_graph_diagnostics(
}
// analyze the next dependencies
- for dep in esm_module.dependencies_prefer_fast_check().values() {
+ for dep in es_module.dependencies_prefer_fast_check().values() {
let Some(specifier) = graph.resolve_dependency_from_dep(dep, true)
else {
continue;
diff --git a/cli/tools/registry/publish_order.rs b/cli/tools/registry/publish_order.rs
index 4071c42ca..bb423b2b5 100644
--- a/cli/tools/registry/publish_order.rs
+++ b/cli/tools/registry/publish_order.rs
@@ -139,7 +139,7 @@ fn build_pkg_deps(
let mut pending = VecDeque::new();
pending.extend(root.exports.clone());
while let Some(specifier) = pending.pop_front() {
- let Some(module) = graph.get(&specifier).and_then(|m| m.esm()) else {
+ let Some(module) = graph.get(&specifier).and_then(|m| m.js()) else {
continue;
};
let mut dep_specifiers =