fix(packages): reorder exports conditions to fix API crash #52

Merged
ghost merged 1 commits from fix/db-exports-condition-order into main 2026-03-18 19:47:33 +00:00

1 Commits

Author SHA1 Message Date
Groom Book CTO eb4ae11ce4 fix(packages): reorder exports conditions to prevent Node.js .ts resolution
Node.js v20.20.1 is matching the `types` export condition before `default`,
causing ERR_UNKNOWN_FILE_EXTENSION when it tries to load .ts source files
at runtime. Moving `default` before `types` ensures Node.js resolves to
the compiled .js output first. TypeScript explicitly seeks the `types`
condition regardless of key order, so TS resolution is unaffected.

Fixes the API container CrashLoopBackOff in the groombook namespace.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 19:44:24 +00:00