Nx Tools
APIExecutorsformat

format

Formats the Prisma Schema Language of the Prisma schema file.

Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/reference/project-configuration#targets.

Examples

apps/your-app/project.json
"prisma-format": {
  "executor": "@nx-tools/nx-prisma:format",
}

You may want to use a custom schema file:

apps/your-app/project.json
"prisma-format": {
  "executor": "@nx-tools/nx-prisma:format",
  "options": {
    "schema": "custom-file.prisma",
  }
}

Options:

Prop

Type

Last updated on

On this page