fix: do not download compilerOptions -> types when not type checking (#24473)

Closes https://github.com/denoland/deno/issues/22738
This commit is contained in:
David Sherret 2024-07-09 17:07:16 -04:00 committed by GitHub
parent e5c3c21e95
commit 43d10a558b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 22 additions and 4 deletions

View file

@ -1301,9 +1301,7 @@ impl CliOptions {
self.maybe_lockfile.clone()
}
/// Return any imports that should be brought into the scope of the module
/// graph.
pub fn to_maybe_imports(
pub fn to_compiler_option_types(
&self,
) -> Result<Vec<deno_graph::ReferrerImports>, AnyError> {
self.workspace.to_maybe_imports().map(|maybe_imports| {