summaryrefslogtreecommitdiff
path: root/cli/tools/registry/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/registry/mod.rs')
-rw-r--r--cli/tools/registry/mod.rs6
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);