Replies: 1 comment 2 replies
-
Hey @VanTanev! So, you suggest to add glob expanding to the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there!
I have been adopting lefthook in a relatively-large monorepo, but unfortunately it's very unergonomic in terms of configuration. The best I have come up with so far is this:
I am not aware of a more compact way to define scripts here.
The above wouldn't be so bad if not for the fact that every time a new package is added the root configuration must be updated. So, even though we have a template for creating packages, we must also manually edit
lefthook.yml
An ideal solution would probably be to be able to define multiple pattern-matching options in
extends
And then have those configs merged at runtime.
Does an API like that make sense, and is if so, @mrexox would you be open to patches introducing it?
Beta Was this translation helpful? Give feedback.
All reactions