-
Notifications
You must be signed in to change notification settings - Fork 552
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
Enable usage in monorepos #782
Comments
The best way to fix this is probably to use cosmiconfig (#773) |
+1 for this! I'm just configuring a monorepo at the moment, and currently this restriction means I always have to run I have a A cleaner solution would maybe be some magic in the CLI tool that looks for a |
Support for this would be awesome 🙏🏻 |
In a monorepo setup (like with yarn workspaces) it is not possible to install
commitizen
at the root and then use it in the packages. Being in a folder likepackages/package-1
with its ownpackage.json
an runningyarn cz
will result in the fallback "just commit" mode, even though it it properly configured in the root. This is becausecz
looks for a configuration in the next availablepackage.json
or.czrc
. If it finds any of these files it seems to stop with an error and the defaulting to commit instead of going up the ladder to the next higherpackage.json
and finding its configuration.A workaround is to copy-paste the config in all the
package.json
s but there is no reason for this strange behaviour.The text was updated successfully, but these errors were encountered: