codemods
codemods copied to clipboard
A Collection of Codemods for Prisma 2
Are there any codemods available to accomplish a Prisma 4 upgrade? The main one I'm looking at is the migration from `rejectOnNotFound` to `find*OrThrow`.
TODO - add schema with Unsupported
**Describe the bug** In the utils file there's a require.resolve to a .bin/jscodeshift, which fails in node_modules free environments. I wonder why plain require.resolve("jscodeshift") didn't work? **Additional context** ``` Error:...
**Describe the bug** A couple of errors in my resolvers: ``` ERR packages/core-api/src/modules/CheckIn/resolvers.ts Transformation error (Unexpected token, expected "," (16:8)) ``` **Expected output** It should not have added Prisma there...
**Describe the bug** Missing a Prisma in the map generic parameter
issue when we have Prisma name used in our files **Before the codemod** ```ts import { PrismaClient } from '@prisma/client' import { PrismaDelete, onDeleteArgs } from '@paljs/plugins' class Prisma extends...