diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-03-07 11:30:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 17:30:30 +0100 |
commit | 594d8397ad46a90389bec9a76afde1bc7f1fa35b (patch) | |
tree | 9238e775513197042429fd9340cdc9bf792e7cd7 /cli/tools/registry | |
parent | 87a08fc3b2d0ed1e5a197628fa7091cb656c9058 (diff) |
fix(publish): properly display graph validation errors (#22775)
The graph validation errors were displaying cryptically during publish.
This fixes that.
Diffstat (limited to 'cli/tools/registry')
-rw-r--r-- | cli/tools/registry/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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<Arc<deno_graph::ModuleGraph>, 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); |