Skip to content

Commit

Permalink
fix(client): fix generate output for dot Prisma Client dir (#7134)
Browse files Browse the repository at this point in the history
Related:
#7133
#7058
  • Loading branch information
Jolg42 committed May 18, 2021
1 parent cac691d commit f0c9a3c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/packages/client/src/__tests__/generation/generator.test.ts
Expand Up @@ -56,15 +56,15 @@ describe('generator', () => {
`)
} else {
expect(manifest).toMatchInlineSnapshot(`
Object {
defaultOutput: @prisma/client,
prettyName: Prisma Client,
requiresEngineVersion: ENGINE_VERSION_TEST,
requiresEngines: Array [
queryEngine,
],
}
`)
Object {
defaultOutput: .prisma/client,
prettyName: Prisma Client,
requiresEngineVersion: ENGINE_VERSION_TEST,
requiresEngines: Array [
queryEngine,
],
}
`)
}

expect(omit(generator.options!.generator, ['output']))
Expand Down Expand Up @@ -227,7 +227,7 @@ describe('generator', () => {
} else {
expect(manifest).toMatchInlineSnapshot(`
Object {
defaultOutput: @prisma/client,
defaultOutput: .prisma/client,
prettyName: Prisma Client,
requiresEngineVersion: ENGINE_VERSION_TEST,
requiresEngines: Array [
Expand Down
2 changes: 1 addition & 1 deletion src/packages/client/src/generator.ts
Expand Up @@ -22,7 +22,7 @@ if (require.main === module) {
: 'queryEngine'
debug(`requiredEngine: ${requiredEngine}`)
return {
defaultOutput: '@prisma/client', // the value here doesn't matter, as it's resolved in https://github.com/prisma/prisma/blob/master/cli/sdk/src/getGenerators.ts
defaultOutput: '.prisma/client', // the value here doesn't matter, as it's resolved in https://github.com/prisma/prisma/blob/master/cli/sdk/src/getGenerators.ts
prettyName: 'Prisma Client',
requiresEngines: [requiredEngine],
version: clientVersion,
Expand Down

0 comments on commit f0c9a3c

Please sign in to comment.