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

[Feature Request] Disable hooks that generates files outside of node_modules in CLI #1379

Open
Arkanii opened this issue Apr 25, 2024 · 2 comments

Comments

@Arkanii
Copy link

Arkanii commented Apr 25, 2024

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

In my docker image build pipeline, I need to run zenstack generate to generate zenstack files (enhance, etc).
But I use the @zenstackhq/tanstack-query hook and this one override files I've already pushed in my repo.

Describe the solution you'd like

An option in the zenstack generate command to disable hooks that generates files outside of node_modules.
I'll gain in stability and build time.

Thanks !

@Arkanii Arkanii changed the title [Feature Request] Disable a specific hook on zenstack generate [Feature Request] Disable hooks that generates files outside of node_modules in CLI Apr 25, 2024
@ymc9
Copy link
Member

ymc9 commented May 2, 2024

Got it. Yes, that makes very good sense. I think we can add a new switch "--plugin [name]" to the CLI (which can be provided multiple times) to explicitly specify what plugins to run. Similar to prisma CLI's "--generator" option.

Does this sound good to you? @Arkanii

@Arkanii
Copy link
Author

Arkanii commented May 13, 2024

Seems good to me !

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

No branches or pull requests

2 participants