From 594d8397ad46a90389bec9a76afde1bc7f1fa35b Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 7 Mar 2024 11:30:30 -0500 Subject: fix(publish): properly display graph validation errors (#22775) The graph validation errors were displaying cryptically during publish. This fixes that. --- cli/tools/registry/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cli/tools/registry/mod.rs') diff --git a/cli/tools/registry/mod.rs b/cli/tools/registry/mod.rs index 9c670ebc1..7b940592f 100644 --- a/cli/tools/registry/mod.rs +++ b/cli/tools/registry/mod.rs @@ -812,8 +812,10 @@ async fn build_and_check_graph_for_publish( diagnostics_collector: &PublishDiagnosticsCollector, packages: &[WorkspaceMemberConfig], ) -> Result, deno_core::anyhow::Error> { - let graph = module_graph_creator.create_publish_graph(packages).await?; - graph.valid()?; + let build_fast_check_graph = !allow_slow_types; + let graph = module_graph_creator + .create_and_validate_publish_graph(packages, build_fast_check_graph) + .await?; // todo(dsherret): move to lint rule collect_invalid_external_imports(&graph, diagnostics_collector); -- cgit v1.2.3