Skip to content

Commit

Permalink
Add note about prisma-json-types-generator (#1617)
Browse files Browse the repository at this point in the history
  • Loading branch information
goleary authored Jan 15, 2025
1 parent 5eb30d0 commit 2ad664d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/config/config-file.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ export default defineConfig({
});
```

If you have multiple `generator` statements defined in your schema file, you can pass in the `clientGenerator` option to specify the `prisma-client-js` generator, which will prevent other generators from being generated:
If you have multiple `generator` statements defined in your schema file, you can pass in the `clientGenerator` option to specify the `prisma-client-js` generator, which will prevent other generators from being generated. Some examples where you may need to do this include when using the `prisma-kysely` or `prisma-json-types-generator` generators.

<CodeGroup>

Expand All @@ -468,6 +468,10 @@ generator kysely {
enumFileName = "enums.ts"
fileName = "types.ts"
}
generator json {
provider = "prisma-json-types-generator"
}
```

```ts trigger.config.ts
Expand Down

0 comments on commit 2ad664d

Please sign in to comment.