From ade0cd5e97e25896457624a0ec6bf524a5fa5c20 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 11 Apr 2024 19:00:17 -0400 Subject: fix: upgrade deno_ast related crates (#23187) Had to revert back swc due to https://github.com/swc-project/swc/issues/8840 Fixes: - https://github.com/denoland/deno_lint/pull/1262 - https://github.com/denoland/deno_doc/pull/538 - https://github.com/denoland/deno_doc/pull/537 - https://github.com/denoland/deno_graph/pull/430 - https://github.com/denoland/deno_graph/pull/425 - https://github.com/denoland/deno_graph/pull/432 --- cli/graph_util.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cli/graph_util.rs') diff --git a/cli/graph_util.rs b/cli/graph_util.rs index b729a1b61..6214a1628 100644 --- a/cli/graph_util.rs +++ b/cli/graph_util.rs @@ -76,6 +76,7 @@ pub fn graph_valid( check_js: options.check_js, follow_type_only: options.follow_type_only, follow_dynamic: options.is_vendoring, + prefer_fast_check_graph: false, }, ) .errors() @@ -441,14 +442,13 @@ impl ModuleGraphBuilder { loader.as_mut_loader(), deno_graph::BuildOptions { is_dynamic: options.is_dynamic, - jsr_url_provider: Some(&CliJsrUrlProvider), + jsr_url_provider: &CliJsrUrlProvider, executor: Default::default(), imports: maybe_imports, resolver: Some(graph_resolver), - file_system: Some(&DenoGraphFsAdapter(self.fs.as_ref())), + file_system: &DenoGraphFsAdapter(self.fs.as_ref()), npm_resolver: Some(graph_npm_resolver), - module_analyzer: Some(&analyzer), - module_parser: Some(&parser), + module_analyzer: &analyzer, reporter: maybe_file_watcher_reporter, workspace_members: &workspace_members, }, @@ -799,6 +799,7 @@ pub fn has_graph_root_local_dependent_changed( deno_graph::WalkOptions { follow_dynamic: true, follow_type_only: true, + prefer_fast_check_graph: true, check_js: true, }, ); -- cgit v1.2.3