Expected Behavior
running npm ls with @commitlint/cli installed should exit zero, meaning that there are no unsatisfied peer dependencies in the dependency tree.
Current Behavior
npm ls reports an unsatisfied peer dependency on typescript:
npm ERR! peer dep missing: typescript@>=2.7, required by [email protected]
npm ls ts-node shows that the requirement is pulled in by @endemolshinegroup/cosmiconfig-typescript-loader:
Affected packages
Possible Solution
either make @endemolshinegroup/cosmiconfig-typescript-loader an optional peer dependency or define typescript as a direct dependency of the cli package in order to satisfy the peer requirement.
Steps to Reproduce (for bugs)
npm install @commitlint/cli -D
npm ls
Context
i use commitlint in many projects that are not typescript projects, so i do not want to define typescript as a direct dependency in those projects to satisfy a peer requirement of commitlint.
Your Environment
| Executable |
Version |
commitlint --version |
13.2.0 |
git --version |
2.27.0 |
node --version |
14.17.5 |
npm --version |
6.14.14 |
Expected Behavior
running
npm lswith@commitlint/cliinstalled should exit zero, meaning that there are no unsatisfied peer dependencies in the dependency tree.Current Behavior
npm lsreports an unsatisfied peer dependency ontypescript:npm ls ts-nodeshows that the requirement is pulled in by@endemolshinegroup/cosmiconfig-typescript-loader:Affected packages
Possible Solution
either make
@endemolshinegroup/cosmiconfig-typescript-loaderan optional peer dependency or define typescript as a direct dependency of the cli package in order to satisfy the peer requirement.Steps to Reproduce (for bugs)
npm install @commitlint/cli -Dnpm lsContext
i use commitlint in many projects that are not typescript projects, so i do not want to define typescript as a direct dependency in those projects to satisfy a peer requirement of commitlint.
Your Environment
commitlint --versiongit --versionnode --versionnpm --version