From 2ad664d17d69e03d326fbbbde8b5844eb4f56add Mon Sep 17 00:00:00 2001 From: Gabe O'Leary Date: Wed, 15 Jan 2025 15:18:42 -0800 Subject: [PATCH] Add note about prisma-json-types-generator (#1617) --- docs/config/config-file.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/config/config-file.mdx b/docs/config/config-file.mdx index 99a6e8c45b..aae1490864 100644 --- a/docs/config/config-file.mdx +++ b/docs/config/config-file.mdx @@ -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. @@ -468,6 +468,10 @@ generator kysely { enumFileName = "enums.ts" fileName = "types.ts" } + +generator json { + provider = "prisma-json-types-generator" +} ``` ```ts trigger.config.ts