diff options
| author | Kitson Kelly <me@kitsonkelly.com> | 2021-12-23 00:25:06 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-22 14:25:06 +0100 |
| commit | 8547a37132752cf6a979237c5a52a7bf16a4e833 (patch) | |
| tree | 10e14c5aa8675bf75c8aa66bf7bf1f7de6948fee /cli/proc_state.rs | |
| parent | ac06797fa8607f2e15477fe1b038215740a5747d (diff) | |
chore: update deno_graph and deno_doc (#13173)
Diffstat (limited to 'cli/proc_state.rs')
| -rw-r--r-- | cli/proc_state.rs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/cli/proc_state.rs b/cli/proc_state.rs index b6797d663..7f49b6b1b 100644 --- a/cli/proc_state.rs +++ b/cli/proc_state.rs @@ -338,9 +338,11 @@ impl ProcState { if self.flags.check == flags::CheckFlag::None || graph_data.is_type_checked(&roots, &lib) { - if let Some(result) = - graph_data.check(&roots, self.flags.check != flags::CheckFlag::None) - { + if let Some(result) = graph_data.check( + &roots, + self.flags.check != flags::CheckFlag::None, + false, + ) { return result; } } @@ -417,8 +419,13 @@ impl ProcState { { let mut graph_data = self.graph_data.write(); graph_data.add_graph(&graph, reload_on_watch); + let check_js = self + .maybe_config_file + .as_ref() + .map(|cf| cf.get_check_js()) + .unwrap_or(false); graph_data - .check(&roots, self.flags.check != flags::CheckFlag::None) + .check(&roots, self.flags.check != flags::CheckFlag::None, check_js) .unwrap()?; } |
