diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-06-06 17:07:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 17:07:46 -0400 |
commit | 2aba4365ae620a8f097800e7cf85ff86f566b69a (patch) | |
tree | 5e3e9b30742455c72f2edc3fa5db0b7cbabe46e8 /cli/tools/info.rs | |
parent | 455b0eb8bb8445f80d9c80a9161f18c1dede5733 (diff) |
perf(cli): conditionally load typescript declaration files (#19392)
Closes #18583
Diffstat (limited to 'cli/tools/info.rs')
-rw-r--r-- | cli/tools/info.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/tools/info.rs b/cli/tools/info.rs index 63a755369..95a7da7b0 100644 --- a/cli/tools/info.rs +++ b/cli/tools/info.rs @@ -11,6 +11,7 @@ use deno_core::resolve_url_or_path; use deno_core::serde_json; use deno_core::serde_json::json; use deno_graph::Dependency; +use deno_graph::GraphKind; use deno_graph::Module; use deno_graph::ModuleError; use deno_graph::ModuleGraph; @@ -43,7 +44,7 @@ pub async fn info(flags: Flags, info_flags: InfoFlags) -> Result<(), AnyError> { let mut loader = module_graph_builder.create_graph_loader(); loader.enable_loading_cache_info(); // for displaying the cache information let graph = module_graph_builder - .create_graph_with_loader(vec![specifier], &mut loader) + .create_graph_with_loader(GraphKind::All, vec![specifier], &mut loader) .await?; if let Some(lockfile) = maybe_lockfile { |