Skip to content

Commit

Permalink
fix(client): json stringify overflow (#12916)
Browse files Browse the repository at this point in the history
  • Loading branch information
millsp committed May 9, 2022
1 parent 8b663d2 commit 2c8a11d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/client/src/generation/generateClient.ts
Expand Up @@ -146,7 +146,7 @@ export async function generateClient({
clientVersion,
engineVersion,
activeProvider,
}: GenerateClientOptions): Promise<BuildClientResult | undefined> {
}: GenerateClientOptions): Promise<void> {
const useDotPrisma = testMode ? !runtimeDir : !generator?.isCustomOutput
const clientEngineType = getClientEngineType(generator!)
runtimeDir = runtimeDir || (useDotPrisma ? '@prisma/client/runtime' : './runtime')
Expand Down Expand Up @@ -316,8 +316,6 @@ export async function generateClient({
if (!fs.existsSync(proxyIndexBrowserJsPath)) {
await copyFile(path.join(__dirname, '../../index-browser.js'), proxyIndexBrowserJsPath)
}

return { prismaClientDmmf, fileMap }
}

async function fileSize(name: string): Promise<number | null> {
Expand Down

0 comments on commit 2c8a11d

Please sign in to comment.