-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from itsjxck/feature/support-multiple-generators
Add support for multiple generators. - When using multiple generators, the `name` property is required. Otherwise, it is optional and will default to `'client'`.
- Loading branch information
Showing
5 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
export interface PrismaGeneratorOptions { | ||
provider: string; | ||
name?: string; | ||
output?: string; | ||
previewFeatures?: string[]; | ||
engineType?: "library" | "binary"; | ||
binaryTargets?: string[]; | ||
[key: string]: string | string[] | undefined; | ||
} | ||
|
||
export type PrismaMultiGeneratorOptions = Array< | ||
Omit<PrismaGeneratorOptions, "name"> & { name: string } | ||
>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters