Skip to content

Commit

Permalink
fix: Update DISABLE_ERD environment variable to match js truthy expec…
Browse files Browse the repository at this point in the history
…tations (#227)

closes issue #225
  • Loading branch information
lucia-w committed Aug 6, 2023
1 parent 91059b8 commit 60a78ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ export default async (options: GeneratorOptions) => {
const ignoreEnums = config.ignoreEnums === 'true';
const includeRelationFromFields =
config.includeRelationFromFields === 'true';
const disabled = Boolean(process.env.DISABLE_ERD);
const disabled = process.env.DISABLE_ERD === 'true';
const debug =
config.erdDebug === 'true' || Boolean(process.env.ERD_DEBUG);

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { generatorHandler } from '@prisma/generator-helper';
import generate from './generate';

const disabled = Boolean(process.env.DISABLE_ERD);
const disabled = process.env.DISABLE_ERD === 'true';

generatorHandler({
onManifest: () => ({
Expand Down

0 comments on commit 60a78ba

Please sign in to comment.