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 <[email protected]>
This commit is contained in:
Kunthawat GreethongandClaude Opus 4.6 committed 2026-05-03 11:56:46 +07:00
1 parent e3dbfc44fa
commit b3c4abcf85
1 file changed
+2 -1
+2 -1
View File
@@ -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