Skip to content

Commit

Permalink
run biome
Browse files Browse the repository at this point in the history
  • Loading branch information
farreldarian committed Apr 10, 2024
1 parent 10bd194 commit dfeb1ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/generator/src/lib/adapter/modules/enums.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { getEnumModuleName } from '~/lib/prisma-helpers/enums'
import { createModule } from '~/lib/syntaxes/module'
import { getGenerator } from '~/shared/generator-context'
import { generateEnumDeclaration } from '../declarations/generateEnumDeclaration'
import type { Adapter } from '../types'
import { getGenerator } from '~/shared/generator-context'

export function generateEnumModules(adapter: Adapter) {
return (getGenerator().dmmf.datamodel.enums ?? []).map((prismaEnum) =>
Expand Down
2 changes: 1 addition & 1 deletion packages/generator/src/lib/adapter/modules/model.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { DMMF } from '@prisma/generator-helper'
import { getGenerator } from '~/shared/generator-context'
import { getModelModuleName } from '../../prisma-helpers/model'
import { createModule } from '../../syntaxes/module'
import { generateTableDeclaration } from '../declarations/generateTableDeclaration'
import { getGenerator } from '~/shared/generator-context'
import type { Adapter } from '../types'

export function generateModelModules(adapter: Adapter) {
Expand Down
14 changes: 7 additions & 7 deletions packages/generator/src/lib/adapter/modules/relational.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { DMMF } from '@prisma/generator-helper'
import { isEmpty } from 'lodash'
import { isRelationField } from '~/lib/prisma-helpers/field'
import { createModule, type Module } from '~/lib/syntaxes/module'
import { generateTableRelationsDeclaration } from '../declarations/generateTableRelationsDeclaration'
import { createModelModule, type ModelModule } from './model'
import type { BaseGeneratedModules } from './sets/base-generated-modules'
import { deduplicateModels } from '~/generator'
import type { DMMF } from '@prisma/generator-helper'
import { generateSchemaDeclaration } from '../declarations/generateSchemaDeclaration'
import { isRelationField } from '~/lib/prisma-helpers/field'
import { type Module, createModule } from '~/lib/syntaxes/module'
import { getGenerator } from '~/shared/generator-context'
import { generateSchemaDeclaration } from '../declarations/generateSchemaDeclaration'
import { generateTableRelationsDeclaration } from '../declarations/generateTableRelationsDeclaration'
import type { Adapter } from '../types'
import { type ModelModule, createModelModule } from './model'
import type { BaseGeneratedModules } from './sets/base-generated-modules'

export type RelationalModuleSet = {
relational: RelationalModule[]
Expand Down

0 comments on commit dfeb1ec

Please sign in to comment.