diff options
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/main.rs b/cli/main.rs index 3d8a80cee..8878fb57a 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -40,6 +40,7 @@ use crate::file_fetcher::File; use crate::file_watcher::ResolutionResult; use crate::flags::BundleFlags; use crate::flags::CacheFlags; +use crate::flags::CheckFlag; use crate::flags::CompileFlags; use crate::flags::CompletionsFlags; use crate::flags::CoverageFlags; @@ -706,7 +707,7 @@ async fn create_graph_and_maybe_check( // locker. emit::lock(graph.as_ref()); - if !ps.flags.no_check { + if ps.flags.check != CheckFlag::None { graph.valid_types_only().map_err(emit::GraphError::from)?; let lib = if ps.flags.unstable { emit::TypeLib::UnstableDenoWindow @@ -731,6 +732,7 @@ async fn create_graph_and_maybe_check( graph.clone(), &mut cache, emit::CheckOptions { + check: ps.flags.check.clone(), debug, emit_with_diagnostics: false, maybe_config_specifier, @@ -759,7 +761,7 @@ fn bundle_module_graph( ps.maybe_config_file.as_ref(), None, )?; - if flags.no_check { + if flags.check == CheckFlag::None { if let Some(ignored_options) = maybe_ignored_options { eprintln!("{}", ignored_options); } |