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 to specify zenstack generate output folder in repl CLI #1768

Open
platon-ivanov opened this issue Oct 9, 2024 · 0 comments
Open

Allow to specify zenstack generate output folder in repl CLI #1768

platon-ivanov opened this issue Oct 9, 2024 · 0 comments
Milestone

Comments

@platon-ivanov
Copy link

Is your feature request related to a problem? Please describe.

The repl command allows us to provide a --prisma-client option. However, when I do, I get:

An unexpected error occurred:
 Error: Generated "enhance" function not found. Please run `zenstack generate` first.

I did run zenstack generate from the root of the project and pointed to the prisma generate output folder. The problem is that I also have a custom zenstack generate output folder, so repl wouldn't detect it automatically.

Describe the solution you'd like
--schema option to specify a custom location to load ZenStack generated modules.

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

No branches or pull requests

2 participants