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/lint/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cli/tools/lint') diff --git a/cli/tools/lint/mod.rs b/cli/tools/lint/mod.rs index 1240b391f..ee7350fb4 100644 --- a/cli/tools/lint/mod.rs +++ b/cli/tools/lint/mod.rs @@ -184,7 +184,9 @@ async fn lint_files( .filter_map(|p| ModuleSpecifier::from_file_path(p).ok()) .collect::>(); futures.push(deno_core::unsync::spawn(async move { - let graph = module_graph_creator.create_publish_graph(&members).await?; + let graph = module_graph_creator + .create_and_validate_publish_graph(&members, true) + .await?; // todo(dsherret): this isn't exactly correct as linting isn't properly // setup to handle workspaces. Iterating over the workspace members // should be done at a higher level because it also needs to take into -- cgit v1.2.3