File tree Expand file tree Collapse file tree 6 files changed +36
-22
lines changed
Expand file tree Collapse file tree 6 files changed +36
-22
lines changed Original file line number Diff line number Diff line change 11{
2- "$schema" : " https://biomejs.dev/schemas/1.8.3/schema.json" ,
3- "organizeImports" : {
4- "enabled" : true
2+ "$schema" : " https://biomejs.dev/schemas/2.1.3/schema.json" ,
3+ "vcs" : {
4+ "enabled" : true ,
5+ "clientKind" : " git" ,
6+ "useIgnoreFile" : true
7+ },
8+ "files" : {
9+ "ignoreUnknown" : false
10+ },
11+ "formatter" : {
12+ "enabled" : true ,
13+ "indentStyle" : " space"
514 },
615 "linter" : {
716 "enabled" : true ,
817 "rules" : {
918 "recommended" : true
1019 }
1120 },
12- "formatter" : {
13- "indentStyle" : " space"
21+ "javascript" : {
22+ "formatter" : {
23+ "quoteStyle" : " double"
24+ }
1425 },
15- "vcs" : {
16- "clientKind" : " git" ,
26+ "assist" : {
1727 "enabled" : true ,
18- "useIgnoreFile" : true
28+ "actions" : {
29+ "source" : {
30+ "organizeImports" : " on"
31+ }
32+ }
1933 }
2034}
Original file line number Diff line number Diff line change 2424 "dev" : " bun run build && bunx prisma generate" ,
2525 "build" : " bun run typecheck && bun build.ts" ,
2626 "lint" : " biome check --write ." ,
27+ "format" : " bun run lint" ,
2728 "typecheck" : " tsc --noEmit"
2829 },
2930 "dependencies" : {
30- "@prisma/generator-helper" : " ^5.22 .0" ,
31+ "@prisma/generator-helper" : " ^6.13 .0" ,
3132 "@sinclair/typebox" : " ^0.34.3" ,
32- "prettier" : " ^3.3.3 "
33+ "prettier" : " ^3.6.2 "
3334 },
3435 "devDependencies" : {
35- "@biomejs/biome" : " ^1.9.4 " ,
36- "@prisma/client" : " 5.22 .0" ,
36+ "@biomejs/biome" : " ^2.1.3 " ,
37+ "@prisma/client" : " 6.13 .0" ,
3738 "@types/bun" : " latest" ,
38- "esbuild" : " ^0.24.0 " ,
39- "prisma" : " 5.22 .0" ,
40- "typescript" : " ^5.6.3 "
39+ "esbuild" : " ^0.25.8 " ,
40+ "prisma" : " 6.13 .0" ,
41+ "typescript" : " ^5.9.2 "
4142 }
4243}
Original file line number Diff line number Diff line change @@ -8,11 +8,10 @@ export function generateTypeboxOptions({
88 input ?: ReturnType < typeof extractAnnotations > ;
99 exludeAdditionalProperties ?: boolean ;
1010} = { } ) : string {
11- if ( exludeAdditionalProperties === undefined ) {
12- exludeAdditionalProperties = ! getConfig ( ) . additionalProperties
11+ if ( exludeAdditionalProperties === undefined ) {
12+ exludeAdditionalProperties = ! getConfig ( ) . additionalProperties ;
1313 }
1414
15-
1615 const stringifiedOptions : string [ ] = [ ] ;
1716 for ( const annotation of input ?. annotations ?? [ ] ) {
1817 if ( isOptionsVariant ( annotation ) ) {
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import { getConfig } from "../config";
88import type { ProcessedModel } from "../model" ;
99import { processedEnums } from "./enum" ;
1010import {
11- type PrimitivePrismaFieldType ,
1211 isPrimitivePrismaFieldType ,
12+ type PrimitivePrismaFieldType ,
1313 stringifyPrimitiveType ,
1414} from "./primitiveField" ;
1515import { wrapWithArray } from "./wrappers/array" ;
@@ -31,7 +31,7 @@ export function processPlain(models: DMMF.Model[] | Readonly<DMMF.Model[]>) {
3131export function stringifyPlain (
3232 data : DMMF . Model ,
3333 isInputModelCreate = false ,
34- isInputModelUpdate = false
34+ isInputModelUpdate = false ,
3535) {
3636 const annotations = extractAnnotations ( data . documentation ) ;
3737
@@ -114,7 +114,7 @@ export function stringifyPlain(
114114 } else if ( processedEnums . find ( ( e ) => e . name === field . type ) ) {
115115 // biome-ignore lint/style/noNonNullAssertion: we checked this manually
116116 stringifiedType = processedEnums . find (
117- ( e ) => e . name === field . type
117+ ( e ) => e . name === field . type ,
118118 ) ! . stringRepresentation ;
119119 } else {
120120 return undefined ;
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import { getConfig } from "../config";
88import type { ProcessedModel } from "../model" ;
99import { processedEnums } from "./enum" ;
1010import {
11- type PrimitivePrismaFieldType ,
1211 isPrimitivePrismaFieldType ,
12+ type PrimitivePrismaFieldType ,
1313 stringifyPrimitiveType ,
1414} from "./primitiveField" ;
1515import { wrapWithArray } from "./wrappers/array" ;
You can’t perform that action at this time.
0 commit comments