commitizen / commitizen/cz-cli
Question: Is it possible to write an adapter in ES6?
未关闭
- 主要语言
- JavaScript
- 星标
- 17.5k
- 派生
- 566
- 平均合并
- 8 小时 16 分钟
- 30 天内合并 PR
- 1
描述
We have written a custom commitizen adapter that is used via our `package.json`:
```
"config": {
"commitizen": {
"path": "./node_modules/our_cz_adapter"
}
},
```
The code in this module is written in TS, and has several dependencies that would need upgrading but we cannot do so since their maintainters are only publishing ESM packages nowadays and we could not find a way to import adapters using ESM imports. Is it possible somehow? Thanks!
贡献指南
调研方向
首先追踪 cz-cli 如何加载 package.json 中配置的适配器路径,并检查是否支持 ESM 导入。确认受支持的模块格式,并定义一个可复现的 TypeScript 适配器案例;该 issue 未指定源文件或测试,因此需要澄清验收标准。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, node.js, typescript
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100