diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-09-03 15:31:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-03 15:31:01 +0200 |
commit | 223403e899c934e23ea3012cc1bbba0b1a3ce92a (patch) | |
tree | 99d092a16eae7b82d6c6b77c85a95277ddda2354 /cli/main.rs | |
parent | 26f5d608ee01eab380f6eb24b141b7d2a81888fc (diff) |
feat(info): add information about npm modules cache (#15750)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/main.rs b/cli/main.rs index bffe9c470..f089eeed6 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -133,6 +133,7 @@ fn print_cache_info( ) -> Result<(), AnyError> { let deno_dir = &state.dir.root; let modules_cache = &state.file_fetcher.get_http_cache_location(); + let npm_cache = &state.npm_resolver.get_cache_location(); let typescript_cache = &state.dir.gen_cache.location; let registry_cache = &state.dir.root.join(lsp::language_server::REGISTRIES_PATH); @@ -149,6 +150,7 @@ fn print_cache_info( let mut output = json!({ "denoDir": deno_dir, "modulesCache": modules_cache, + "npmCache": npm_cache, "typescriptCache": typescript_cache, "registryCache": registry_cache, "originStorage": origin_dir, @@ -172,6 +174,11 @@ fn print_cache_info( ); println!( "{} {}", + colors::bold("npm modules cache:"), + npm_cache.display() + ); + println!( + "{} {}", colors::bold("Emitted modules cache:"), typescript_cache.display() ); |