Skip to main content
Manusで任意のスキルを実行
ワンクリックで

prisma-fleet-migration

スター0
フォーク0
更新日2026年6月12日 10:43

Migrate one or many repos from Prisma 5 to Prisma 7. The v7 change requires a driver adapter (e.g., `@prisma/adapter-pg`) for `new PrismaClient()`, which breaks build-time instantiation (Next.js page-data collection, monorepo CI). Solution: lazy Proxy pattern that defers `PrismaClient` construction until the first method call. Covers: schema datasource `url` removal → `prisma.config.ts`, lazy proxy per file role, lockfile regen with exact pinning (npm resolves `^7.8.0` to 5.22.0), `--legacy-peer-deps` for Capacitor repos, force-push for branch-protected repos. From a real 6-repo fleet migration.

インストール

Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。

SKILL.md
readonly