zenstack
zenstack copied to clipboard
[Feature Request] Disable hooks that generates files outside of node_modules in CLI
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 !
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
Seems good to me !
Thanks for the functionality! I close the issue 😁