diff options
author | Luca Casonato <hello@lcas.dev> | 2024-01-24 22:59:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 21:59:18 +0000 |
commit | 316093fec41163be3d0e31e6d61b5bc0b1341b27 (patch) | |
tree | 8a47a85b0271fc7580508f47e4ed1fb73504d4f7 /cli/tools/registry/mod.rs | |
parent | 52ad1ef154d352529c4ad4857ab82d8478aeb105 (diff) |
feat(publish): error on invalid external imports (#22088)
Diffstat (limited to 'cli/tools/registry/mod.rs')
-rw-r--r-- | cli/tools/registry/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tools/registry/mod.rs b/cli/tools/registry/mod.rs index 1c5344d27..cb43e0df8 100644 --- a/cli/tools/registry/mod.rs +++ b/cli/tools/registry/mod.rs @@ -34,6 +34,7 @@ use crate::http_util::HttpClient; use crate::tools::check::CheckOptions; use crate::tools::registry::diagnostics::PublishDiagnosticsCollector; use crate::tools::registry::graph::collect_fast_check_type_graph_diagnostics; +use crate::tools::registry::graph::collect_invalid_external_imports; use crate::tools::registry::graph::get_workspace_member_roots; use crate::tools::registry::graph::resolve_config_file_roots_from_exports; use crate::tools::registry::graph::MemberRoots; @@ -752,6 +753,9 @@ async fn build_and_check_graph_for_publish( .await?, ); graph.valid()?; + + collect_invalid_external_imports(&graph, diagnostics_collector); + log::info!("Checking fast check type graph for errors..."); let has_fast_check_diagnostics = collect_fast_check_type_graph_diagnostics( &graph, |