diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-02-20 16:29:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 21:29:57 +0000 |
commit | f90889e5ee19e0ddcd9c1dbcce98720e417dd83e (patch) | |
tree | e44392e9506ba8cddc4c142d304f43879a418152 /cli/tools/info.rs | |
parent | dbc4a4d6327062918b3bc41dc3f60c84ae3c620b (diff) |
perf(jsr): fast check cache and lazy fast check graph (#22485)
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 0ad7d8920..ca08003ad 100644 --- a/cli/tools/info.rs +++ b/cli/tools/info.rs @@ -40,6 +40,7 @@ pub async fn info(flags: Flags, info_flags: InfoFlags) -> Result<(), AnyError> { let cli_options = factory.cli_options(); if let Some(specifier) = info_flags.file { let module_graph_builder = factory.module_graph_builder().await?; + let module_graph_creator = factory.module_graph_creator().await?; let npm_resolver = factory.npm_resolver().await?; let maybe_lockfile = factory.maybe_lockfile(); let maybe_imports_map = factory.maybe_import_map().await?; @@ -63,7 +64,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 + let graph = module_graph_creator .create_graph_with_loader(GraphKind::All, vec![specifier], &mut loader) .await?; |