summaryrefslogtreecommitdiff
path: root/cli/deno_dir.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/deno_dir.rs')
-rw-r--r--cli/deno_dir.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/deno_dir.rs b/cli/deno_dir.rs
index ca6f8b81f..ea46474d0 100644
--- a/cli/deno_dir.rs
+++ b/cli/deno_dir.rs
@@ -44,6 +44,18 @@ impl DenoDir {
Ok(deno_dir)
}
+
+ /// Path for the incremental cache used for formatting.
+ pub fn fmt_incremental_cache_db_file_path(&self) -> PathBuf {
+ // bump this version name to invalidate the entire cache
+ self.root.join("fmt_incremental_cache_v1")
+ }
+
+ /// Path for the incremental cache used for linting.
+ pub fn lint_incremental_cache_db_file_path(&self) -> PathBuf {
+ // bump this version name to invalidate the entire cache
+ self.root.join("lint_incremental_cache_v1")
+ }
}
/// To avoid the poorly managed dirs crate