Fix API crash: add exports field and clean runtime image #44
Reference in New Issue
Block a user
Delete Branch "fix/api-docker-resolution"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
exportsfield to@groombook/dband@groombook/typespackage.json for explicit ESM resolutiontype: moduleto workspace packages for correct Node.js module handlingrm -rfcleanup in Dockerfile runner stage to ensure no TS source files in runtime image.dockerignoreto reduce build context sizeProblem
API pods are in CrashLoopBackOff with
ERR_UNKNOWN_FILE_EXTENSION: ".ts"— Node.js was resolving to TypeScript source files instead of compiled JS output due to missingexportsfield and stale Docker layer cache.Test plan
pnpm typecheckpasses for API, db, and types packagespnpm --filter @groombook/api testpasses (8/8 tests)pnpm --filter @groombook/api buildsucceeds🤖 Generated with Claude Code