ework-web 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +10 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-web",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "description": "ework-web — standalone multi-project issue tracker. Local SQLite-backed, no external API dependency. Bun + TypeScript + SSR HTML.",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -240,8 +240,16 @@ function daemonEnvPath(): string | null {
240
240
  const p = join(dataDir, ".env");
241
241
  return existsSync(p) ? p : null;
242
242
  }
243
- const conventional = join(homedir(), ".local", "share", "ework-daemon", ".env");
244
- return existsSync(conventional) ? conventional : null;
243
+ // Conventional paths: standalone install, then ework-aio managed layout
244
+ // (~/.local/share/ework-aio/ework-daemon/.env).
245
+ const candidates = [
246
+ join(homedir(), ".local", "share", "ework-daemon", ".env"),
247
+ join(homedir(), ".local", "share", "ework-aio", "ework-daemon", ".env"),
248
+ ];
249
+ for (const c of candidates) {
250
+ if (existsSync(c)) return c;
251
+ }
252
+ return null;
245
253
  }
246
254
 
247
255
  function spawnDaemonRestart(): void {