commitizen / commitizen/cz-cli
Enable usage in monorepos
- Ngôn ngữ chính
- JavaScript
- Star
- 17.5k
- Fork
- 566
- Merge trung bình
- 8 giờ 16 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
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 like `packages/package-1` with its own `package.json` an running `yarn cz` will result in the fallback "just commit" mode, even though it it properly configured in the root. This is because `cz` looks for a configuration in the next available `package.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 higher `package.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.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.