diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-09-02 10:54:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-02 10:54:40 -0400 |
commit | 387300aed0133e369af090d3795a1fce89603737 (patch) | |
tree | 63061cf6bb6853504f507771af91c9f2682880c4 /cli/main.rs | |
parent | e719a02bb0a4cc39e11a945dcff83422440e50d4 (diff) |
refactor: extract out check code from emit (#15729)
Closes #15535
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/main.rs b/cli/main.rs index 391b4ff0d..0c4b5c893 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -73,6 +73,7 @@ use crate::graph_util::graph_valid; use crate::proc_state::ProcState; use crate::resolver::ImportMapResolver; use crate::resolver::JsxResolver; +use crate::tools::check; use args::CliOptions; use deno_ast::MediaType; @@ -500,11 +501,11 @@ async fn create_graph_and_maybe_check( } let maybe_config_specifier = ps.options.maybe_config_file_specifier(); let cache = TypeCheckCache::new(&ps.dir.type_checking_cache_db_file_path()); - let check_result = emit::check( + let check_result = check::check( &graph.roots, Arc::new(RwLock::new(graph.as_ref().into())), &cache, - emit::CheckOptions { + check::CheckOptions { type_check_mode: ps.options.type_check_mode(), debug, maybe_config_specifier, |