Repository navigation
feat: add prisma generate and tsconfig to migration image for seed support - #40
Merged
Merged
Conversation
…pport - COPY tsconfig.json so ts-node uses proper compiler options for seed.ts - RUN prisma:generate so @prisma/client is no longer a throw stub (npm ci runs before COPY prisma, so postinstall generate found no schema) - unblocks: docker compose run migration npm run prisma:seed (dev-adoption plan Step 5)
youdingtianzhaogeyinzuo
approved these changes
Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
COPY tsconfig.jsonとRUN npm run prisma:generateを追加(Dockerfile.migrate +4 行)npm ciがCOPY prismaより先に走り generate が一度も実行されないため、@prisma/clientが throw スタブのまま →prisma:seedが必ず失敗するWhy
prisma migrate deploy(CLI のみ)しか実行していないため。seed を試すまで表面化しない欠陥Test plan
verify-images.sh dev通し実行済み(pull → 依存起動 → migration 12 件適用 → backend/frontend healthy)develop/develop-<sha>タグ)docker compose run --rm migration npm run prisma:seedが成功すること