Closed shlroland closed 1 month ago
Could u tell me what configuration is not effective? It works normally on my side.
.commitlintrc.cjs
/** @type {import('czg').UserConfig} */
module.exports = {
extends: ['@shlroland/commitlint-config'],
}
Try it to see if the configuration is overwritten.
CZ_DEBUG=1 czg -a
CZ_DEBUG=1 czg -a
The debug information is also normal.
Reproduced repository link: https://github.com/shlroland/lint-config/tree/tmp
Strange 🤔. When I use the pre-release version, it returns to normal. The fix for the pre-released version is likely due to an upgrade @commlint/resolve-extends
. I will debug it tomorrow.
In the meantime, you can install 1.10.0-beta.1
for use, which will be released over the weekend.
pnpm i -D czg@next
npm i -g czg@next
czg -v
Thank you very much for pointing out this issue.
It has been confirmed that the issue belongs to the upstream package @commitlint/resolve-extends@19.0.3
bug.
@commitlint
packages to the latest version 19.5.0
, and released 1.10.0-beta.2
, which works normally with extends.@commitlint/resolve-extends
to 19.0.3
, and released 1.10.0-beta.3
, which behaves abnormally.I will release the fix version v1.10.0
over the weekend, upgrading all @commitlint
packages to the latest v19.5.0
.
I have released a next pre-release version 🌟(v1.10.0-beta.4)🌟 for testing.
Welcome to try it out! 👀 Let me know if there are still any issues. 🎉
pnpm i -D czg@next
npm i -g czg@next
czg -v #v1.10.0-beta.4
czg -a
Thank you for your timely reply and your hard work in fixing the problem overnight. I'll try it out.
The latest version 🌟(v1.10.0)🌟 should be resolve this issue request , please have a try. 💪 👀 Let me know if there are still any issues. 🎉
✅ Checklist
📄 System Info
🔎 Description
Concise Description
I configured a commitlint configuration file in the monorepo project. When I installed it in the root directory and used it in commitlint.config.js, the content of extends did not take effect. like this
Expected behavior
When I switch back to commitizen + cz-git, at this time, extends can take effect.
Steps to reproduce
Screenshots or Screen Recording(if possible)
🔗 Reproduction link / repo:
No response