Skip to content

Commit

Permalink
fix(client): dont generate twice for custom output path
Browse files Browse the repository at this point in the history
Closes #3036
  • Loading branch information
prisma-bot committed Jul 23, 2020
1 parent 8652c65 commit c84cd17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packages/client/src/generation/generateClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export async function generateClient({
process.env.INIT_CWD,
'node_modules/.prisma/client',
)
if (finalOutputDir !== backupPath) {
if (finalOutputDir !== backupPath && !generator!.isCustomOutput) {
await copy({
from: finalOutputDir,
to: backupPath,
Expand Down

0 comments on commit c84cd17

Please sign in to comment.