diff options
author | haturatu <taro@eyes4you.org> | 2024-10-13 17:29:34 +0900 |
---|---|---|
committer | haturatu <taro@eyes4you.org> | 2024-10-13 17:29:34 +0900 |
commit | ea4278050d06dd383d1edfbbde5efae69e75bbd5 (patch) | |
tree | 5f54b8d0591c74d11a098b524558a70c8a87bb6a /cli/tools/info.rs | |
parent | cedfd657a6a2f04d841db2b3fc3d7694de95eada (diff) |
add deno info deno_cache
Diffstat (limited to 'cli/tools/info.rs')
-rw-r--r-- | cli/tools/info.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tools/info.rs b/cli/tools/info.rs index 16f8b29ab..45d9ee72f 100644 --- a/cli/tools/info.rs +++ b/cli/tools/info.rs @@ -121,7 +121,7 @@ fn print_cache_info( let registry_cache = dir.registries_folder_path(); let mut origin_dir = dir.origin_data_folder_path(); let deno_dir = dir.root_path_for_display().to_string(); - let temp_dir = env::temp_dir(); + let deno_cache_dir = std::env::temp_dir().join("deno_cache"); if let Some(location) = &location { origin_dir = @@ -139,7 +139,7 @@ fn print_cache_info( "typescriptCache": typescript_cache, "registryCache": registry_cache, "originStorage": origin_dir, - "tempDir": temp_dir, + "denoCacheDir": deno_cache_dir, }); if location.is_some() { @@ -176,8 +176,8 @@ fn print_cache_info( ); println!( "{} {}", - colors::bold("Temp directory:"), - temp_dir.display() + colors::bold("Deno Cache:"), + deno_cache_dir.display() ); if location.is_some() { println!( |