From b3c4abcf85b7b8df08854f129acd0fa574fc6dcc Mon Sep 17 00:00:00 2001 From: Kunthawat Greethong Date: Sun, 3 May 2026 11:56:46 +0700 Subject: [PATCH] Dockerfile: copy full @emdash-cms/auth package not just dist/ The exports map in package.json is needed at build time to resolve "@emdash-cms/auth/adapters/kysely". Copying just dist/ loses the exports field in package.json causing resolution to fail. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5377262..46ac9dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,8 @@ COPY . . # Remove old emdash packages and replace with patched source RUN rm -rf node_modules/emdash node_modules/@emdash-cms/auth RUN cp -r /app/emdash-source/packages/core node_modules/emdash -RUN cp -r /app/emdash-source/packages/auth/dist node_modules/@emdash-cms/auth +# Copy full auth package (not just dist/) so exports map is preserved +RUN cp -r /app/emdash-source/packages/auth node_modules/@emdash-cms/auth RUN pnpm build && mkdir -p storage/uploads