Skip to content

Commit

Permalink
chore: add debugging (#4810)
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Dec 29, 2020
1 parent 77e72d5 commit 88fae09
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/packages/sdk/src/getGenerators.ts
Expand Up @@ -33,6 +33,9 @@ import { engineVersions } from './getAllVersions'
import { enginesVersion } from '@prisma/engines'
import { printConfigWarnings } from './utils/printConfigWarnings'

import Debug from '@prisma/debug'
const debug = Debug('getGenerators')

export type ProviderAliases = { [alias: string]: GeneratorPaths }

type BinaryPathsOverride = {
Expand Down Expand Up @@ -285,6 +288,8 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
enableExperimental: experimentalFeatures,
})
const options = { ...generator.options, dmmf: customDmmf }
debug(generator.manifest.prettyName)
debug(options)
generator.setOptions(options)
}
}
Expand Down

0 comments on commit 88fae09

Please sign in to comment.