conventional-changelog/commitlint
fix: dependencies tree for typing needs fine-tunning
已关闭
#4,107 创建于 2024年7月28日
bughelp wanted
仓库指标
- 星标
- (15,497 个星标)
- PR 合并指标
- (平均合并 12小时 56分钟) (30 天内合并 52 个 PR)
描述
Steps to Reproduce
- In a new typescript project install the following:
typescript@latest @commitlint/cli@19.3.0 conventional-commits-parser@6.0.0
- import conventional-commits-parser and notice how the types are missing
Current Behavior
When Installing @commitlint/cli@19.3.0 @commitlint/types@19.0.3 is also installed
Which breaks typing when conventional-commits-parser@6.0.0 is installed.
typescript will complain about commit parser having no exported member 'CommitParser' import { CommitParser } from "conventional-commits-parser";
Expected Behavior
Installing @commitlint/cli & conventional-commits-parser should result in the correct typings
Affected packages
- cli
- core
- prompt
- config-angular
Possible Solution
No response
Context
No response
commitlint --version
@commitlint/cli@19.3.0
git --version
2.41.0
node --version
22.4.0