Skip to content

Commit

Permalink
Enable zod-prisma-types createInputTypes (#87)
Browse files Browse the repository at this point in the history
* Enable zod-prisma-types createInputTypes

* Mark generated Prisma types as linguist-generated
  • Loading branch information
markspolakovs authored Sep 5, 2023
1 parent 49fdbda commit 2ff2ff5
Show file tree
Hide file tree
Showing 782 changed files with 22,595 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
utility/prisma/types/**/*.ts linguist-generated=true
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@
"lint-staged": {
"{desktop,server,jobrunner,utility}/*.{js,jsx,ts,tsx}": "eslint --fix",
"*": "prettier --ignore-unknown --write"
},
"resolutions": {
"zod": "<=3.21.1"
}
}
2 changes: 1 addition & 1 deletion utility/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ generator zod {
output = "./types"
useMultipleFiles = true
writeBarrelFiles = true
createInputTypes = false
createInputTypes = true
addIncludeType = false
addSelectType = false
}
Expand Down
5 changes: 3 additions & 2 deletions utility/prisma/types/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions utility/prisma/types/inputTypeSchemas/AssetCreateInputSchema.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions utility/prisma/types/inputTypeSchemas/AssetIncludeSchema.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2ff2ff5

Please sign in to comment.