Skip to content

Commit

Permalink
fix engine mode display for generate
Browse files Browse the repository at this point in the history
  • Loading branch information
millsp committed Jun 6, 2022
1 parent 091f807 commit 736ce04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sdk/src/cli/getGeneratorSuccessMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ function formatVersion(generator: Generator): string | undefined {

if (generator.getProvider() === 'prisma-client-js') {
const engineType = getClientEngineType(generator.config)
return version ? `${version} | ${engineType}` : engineType
const engineMode = generator.options?.dataProxy ? 'dataproxy' : engineType
return version ? `${version} | ${engineMode}` : engineMode
}

return version
Expand Down

0 comments on commit 736ce04

Please sign in to comment.