Skip to content

Commit

Permalink
fix(deps): update engines to v2.20.0-22.dbbf2c38ad16933bc49afa065c06c…
Browse files Browse the repository at this point in the history
…45ba891cda4 (#6271)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: William Luke <william@ordino.ai>
Co-authored-by: William Luke <william@atto-byte.com>
  • Loading branch information
4 people committed Mar 29, 2021
1 parent 2621ae3 commit 01af9a9
Show file tree
Hide file tree
Showing 27 changed files with 341 additions and 510 deletions.
2 changes: 1 addition & 1 deletion src/packages/cli/package.json
Expand Up @@ -128,7 +128,7 @@
"precommit": "lint-staged"
},
"dependencies": {
"@prisma/engines": "2.20.0-17.7c0577afe6a4bdc4cb153e4e22dc136442300aa1"
"@prisma/engines": "2.20.0-22.dbbf2c38ad16933bc49afa065c06c45ba891cda4"
},
"lint-staged": {
"*.ts": [
Expand Down
14 changes: 10 additions & 4 deletions src/packages/cli/src/Generate.ts
Expand Up @@ -14,6 +14,7 @@ import {
link,
logger,
missingGeneratorMessage,
parseEnvValue,
} from '@prisma/sdk'
import chalk from 'chalk'
import fs from 'fs'
Expand Down Expand Up @@ -71,7 +72,7 @@ ${chalk.bold('Examples')}
? chalk.dim(
` to .${path.sep}${path.relative(
process.cwd(),
generator.options!.generator.output!,
parseEnvValue(generator.options!.generator.output!),
)}`,
)
: ''
Expand Down Expand Up @@ -169,7 +170,8 @@ If you do not have a Prisma schema file yet, you can ignore this message.`)
// Only used for CLI output, ie Go client doesn't want JS example output
const jsClient = generators.find(
(g) =>
g.options && g.options.generator.provider === 'prisma-client-js',
g.options &&
parseEnvValue(g.options.generator.provider) === 'prisma-client-js',
)

clientGeneratorVersion = jsClient?.manifest?.version ?? null
Expand Down Expand Up @@ -228,7 +230,9 @@ Please run \`prisma generate\` manually.`

if (!watchMode) {
const prismaClientJSGenerator = generators?.find(
(g) => g.options?.generator.provider === 'prisma-client-js',
(g) =>
g.options?.generator.provider &&
parseEnvValue(g.options?.generator.provider) === 'prisma-client-js',
)
let hint = ''
if (prismaClientJSGenerator) {
Expand All @@ -237,7 +241,9 @@ Please run \`prisma generate\` manually.`
? prefixRelativePathIfNecessary(
path.relative(
process.cwd(),
prismaClientJSGenerator.options.generator.output!,
parseEnvValue(
prismaClientJSGenerator.options.generator.output!,
),
),
)
: '@prisma/client'
Expand Down
243 changes: 0 additions & 243 deletions src/packages/cli/src/__tests__/__snapshots__/studio.test.ts.snap

This file was deleted.

0 comments on commit 01af9a9

Please sign in to comment.