Skip to content

Commit

Permalink
chore: add generate debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Jun 2, 2020
1 parent 39fdca4 commit ab83d55
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/packages/cli/src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ import { Format } from './Format'
const aliases: ProviderAliases = {
'prisma-client-js': {
generatorPath: `node --max-old-space-size=8096 "${eval(
"require('path').join(__dirname, '../prisma-client/generator-build/index.js')",
`require('path').join(__dirname, '../prisma-client/generator-build/index.js')`,
)}"`, // all evals are here for ncc
outputPath: eval(`require('path').join(__dirname, '../prisma-client/')`),
},
Expand Down
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 @@ -139,10 +139,10 @@ export async function generateClient({
runtimePath || (useDotPrisma ? '@prisma/client/runtime' : './runtime')

const finalOutputDir = useDotPrisma ? getDotPrismaDir(outputDir) : outputDir
debug({ finalOutputDir, runtimePath })

if (testMode) {
Debug.enable('generateClient')
// debug({ finalOutputDir })
}

const { prismaClientDmmf, fileMap } = await buildClient({
Expand Down
44 changes: 39 additions & 5 deletions src/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ab83d55

Please sign in to comment.