Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the generator execution to be disabled #112

Open
aiji42 opened this issue Apr 26, 2022 · 1 comment · May be fixed by #114
Open

Allow the generator execution to be disabled #112

aiji42 opened this issue Apr 26, 2022 · 1 comment · May be fixed by #114

Comments

@aiji42
Copy link

aiji42 commented Apr 26, 2022

I have a need to intentionally stop zod-prisma generation, for example when running prisma generate on CI.

It would be useful to be able to temporarily disable it via an environment variable.
e.g. ZOD_PRISMA_DISABLE=true yarn prisma generate.

@aiji42 aiji42 changed the title Allow control over disabling generation Allow the generator execution to be disabled Apr 26, 2022
@aiji42 aiji42 linked a pull request Apr 26, 2022 that will close this issue
@chrishoermann
Copy link

I'm late to the show but I just published a similar generator (zod-prisma-types) that lets you define in which environment it should be run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants