Skip to content

Commit

Permalink
fix(cli): deno + dataproxy message (#15847)
Browse files Browse the repository at this point in the history
* fix deno + dataproxy message

* lint
  • Loading branch information
millsp committed Oct 17, 2022
1 parent ef82898 commit 187470c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/cli/src/Generate.ts
Expand Up @@ -247,8 +247,12 @@ ${chalk.dim('```')}${
prismaClientJSGenerator.options?.dataProxy
? `
To use Prisma Client in edge runtimes like Cloudflare Workers or Vercel Edge Functions, import it like this:
${chalk.dim('```')}
${
isDeno
? 'To use Prisma Client with Deno and the Data Proxy, import it like this:'
: 'To use Prisma Client in edge runtimes like Cloudflare Workers or Vercel Edge Functions, import it like this:'
}
${chalk.dim('```')}
${highlightTS(`\
import { PrismaClient } from '${importPath}/${isDeno ? 'deno/' : ''}edge${isDeno ? '.ts' : ''}'`)}
${chalk.dim('```')}
Expand Down

0 comments on commit 187470c

Please sign in to comment.