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/lint/mod.rs | |
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/lint/mod.rs')
-rw-r--r-- | cli/tools/lint/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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::<HashSet<_>>(); 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 |