Streamline directory layout and consolidate state and cache paths
This commit is contained in:
1 parent
9cf3e8ce56
commit
d3642b93d8
13 files changed
+94
-29
No files matched your search
@@ -1,9 +1,10 @@
|
||||
import { existsSync, mkdirSync, readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
||||
import { homedir } from "node:os";
|
||||
import { dirname, join } from "node:path";
|
||||
|
||||
import { SEAL_CACHE_DIR } from "../paths.js";
|
||||
|
||||
export const USAGE_FILE_ENV = "SEAL_USE_USAGE_FILE";
|
||||
const DEFAULT_USAGE_FILE = join(homedir(), ".config", "seal-use", "usage.json");
|
||||
const DEFAULT_USAGE_FILE = join(SEAL_CACHE_DIR, "usage.json");
|
||||
const DEFAULT_WINDOW_DAYS = 7;
|
||||
|
||||
export type CorpUsageDailyStats = Record<string, number>;
|
||||
|
||||
Reference in new issue
Block a user