zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

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

Open Arkanii opened this issue 10 months ago • 2 comments

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 avatar Apr 25 '24 11:04 Arkanii

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

ymc9 avatar May 02 '24 11:05 ymc9

Seems good to me !

Arkanii avatar May 13 '24 07:05 Arkanii

Thanks for the functionality! I close the issue 😁

Arkanii avatar Sep 07 '24 10:09 Arkanii