summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-11-30 09:23:30 +1100
committerGitHub <noreply@github.com>2021-11-30 09:23:30 +1100
commit18a63dd977ade20e17d41c08acbefde6eada8572 (patch)
treeba233cf2c4d7be978008f736f25a677d1e9dae8a /cli/main.rs
parentf3b74350da69cb8cc0aedb1c1570abe2c64741ba (diff)
feat: add `--no-check=remote` flag (#12766)
Closes #11970
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs6
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);
}