Prisma generate needs a package.json in the inferred project root to identify the workspace. Without it, Prisma tries to auto-install and fails. Copying apps/api/package.json alongside the schema file provides the required project root marker.
Prisma generate needs a package.json in the inferred project root to identify the workspace. Without it, Prisma tries to auto-install and fails. Copying apps/api/package.json alongside the schema file provides the required project root marker.