@prisma/codemods package helps you to upgrade your codebase as Prisma evolves and changes.
You can checkout the repository, here: https://github.com/prisma/codemods
$ $ npx @prisma/codemods <transform> <path> <...options>
<transform>- See Transforms for available choices
<path>- The directory of your app. i.e ./my-awesome-project
(-f)orce- Bypass Git safety checks and forcibly run codemods
(-s)chemaPath- Specify a path to your ./prisma/schema.prisma
(-d)ry- Dry run (no changes are made to files)
(-p)rint- Print transformed files to your terminal
--instanceNames=myClient- Useful when importing an already instantiated client (i.e import myClient from './myClient')
|Codemod for |
|to\$: Converts deprecated |
Was this helpful?
Edit this page on GitHub