Replace env-paths with xdg-basedir for better XDG compliance and cross-platform directory handling

🤖 Generated with opencode
Co-Authored-By: opencode <noreply@opencode.ai>
This commit is contained in:
Dax Raad
2025-06-03 14:46:28 -04:00
parent 9ad0477af6
commit 8e769dcac0
7 changed files with 30 additions and 22 deletions

View File

@@ -34,7 +34,7 @@ export namespace App {
x ? path.dirname(x) : undefined,
)
const data = path.join(Global.data(), git ?? "global")
const data = path.join(Global.Path.data, git ?? "global")
const stateFile = Bun.file(path.join(data, APP_JSON))
const state = (await stateFile.json().catch(() => ({}))) as {
initialized: number