ework-web 0.4.4 → 0.4.5

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 +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-web",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
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
@@ -235,9 +235,11 @@ function daemonEnvPath(): string | null {
235
235
  const p = join(dataDir, ".env");
236
236
  return existsSync(p) ? p : null;
237
237
  }
238
- // Conventional paths: standalone install, then ework-aio managed layout
239
- // (~/.local/share/ework-aio/ework-daemon/.env).
238
+ // Sibling layout (ework-aio managed): web's cwd is <dataDir>/ework-web/,
239
+ // daemon is at <dataDir>/ework-daemon/.env. Checked first because it works
240
+ // regardless of where --data-dir points (Docker, custom paths, etc.).
240
241
  const candidates = [
242
+ join(process.cwd(), "..", "ework-daemon", ".env"),
241
243
  join(homedir(), ".local", "share", "ework-daemon", ".env"),
242
244
  join(homedir(), ".local", "share", "ework-aio", "ework-daemon", ".env"),
243
245
  ];