diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-11-24 12:07:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-24 17:07:36 +0000 |
commit | b6f49cf4790926df125add2329611a8eff8db9da (patch) | |
tree | 513a81e64185115e50cd06636a410178ed23c14b /cli/proc_state.rs | |
parent | 04afc06b00b28645462f3cca1626d22c1cd579f8 (diff) |
fix(npm/check): prioritize exports over types entry (#16788)
Diffstat (limited to 'cli/proc_state.rs')
-rw-r--r-- | cli/proc_state.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/proc_state.rs b/cli/proc_state.rs index 7dac38cad..2064d3851 100644 --- a/cli/proc_state.rs +++ b/cli/proc_state.rs @@ -424,7 +424,8 @@ impl ProcState { drop(_pb_clear_guard); // type check if necessary - if self.options.type_check_mode() != TypeCheckMode::None { + let is_std_node = roots.len() == 1 && roots[0].0 == *node::MODULE_ALL_URL; + if self.options.type_check_mode() != TypeCheckMode::None && !is_std_node { log::debug!("Type checking."); let maybe_config_specifier = self.options.maybe_config_file_specifier(); let roots = roots.clone(); |