diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-08-01 20:49:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-02 00:49:09 +0000 |
commit | 1cefa831fd74b14121494045a347024502d74e34 (patch) | |
tree | cc7791cf674e427fe4165262db416e6c537e99a3 /cli/graph_util.rs | |
parent | 36ae37604a0ddab4349df6eb6fafb8ae39fd20fc (diff) |
feat(unstable): optional `deno_modules` directory (#19977)
Closes #15633
Diffstat (limited to 'cli/graph_util.rs')
-rw-r--r-- | cli/graph_util.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/graph_util.rs b/cli/graph_util.rs index 1653052e5..3623f49d0 100644 --- a/cli/graph_util.rs +++ b/cli/graph_util.rs @@ -4,6 +4,7 @@ use crate::args::CliOptions; use crate::args::Lockfile; use crate::args::TsTypeLib; use crate::cache; +use crate::cache::GlobalHttpCache; use crate::cache::ParsedSourceCache; use crate::colors; use crate::errors::get_error_class_name; @@ -174,6 +175,7 @@ pub struct ModuleGraphBuilder { maybe_file_watcher_reporter: Option<FileWatcherReporter>, emit_cache: cache::EmitCache, file_fetcher: Arc<FileFetcher>, + global_http_cache: Arc<GlobalHttpCache>, type_checker: Arc<TypeChecker>, } @@ -188,6 +190,7 @@ impl ModuleGraphBuilder { maybe_file_watcher_reporter: Option<FileWatcherReporter>, emit_cache: cache::EmitCache, file_fetcher: Arc<FileFetcher>, + global_http_cache: Arc<GlobalHttpCache>, type_checker: Arc<TypeChecker>, ) -> Self { Self { @@ -199,6 +202,7 @@ impl ModuleGraphBuilder { maybe_file_watcher_reporter, emit_cache, file_fetcher, + global_http_cache, type_checker, } } @@ -345,6 +349,7 @@ impl ModuleGraphBuilder { self.emit_cache.clone(), self.file_fetcher.clone(), self.options.resolve_file_header_overrides(), + self.global_http_cache.clone(), permissions, self.options.node_modules_dir_specifier(), ) |