getMainFilePath util function fails because of hardcoded target name
- 主要语言
- TypeScript
- 星标
- 27k
- 派生
- 11.8k
- 平均合并
- 14 小时 23 分钟
- 30 天内合并 PR
- 162
描述
### Command
add
### Description
I've seen a lot of cases when people are using different name for their build targets, for various reasons. So if the `build` is not found, the `getMainFilePath` fails, which is not right in my opinion
### Describe the solution you'd like
It should ask interactively which target should be used if `build` is not found, when interactivity is enabled in the execution context
### Describe alternatives you've considered
_No response_
贡献指南
调研方向
Start with the getMainFilePath utility and trace how the add command handles a missing build target in an interactive execution context. Check the existing target lookup and interaction flow; done means non-build target names no longer fail silently and an interactive user can choose the target when build is absent.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- build-system, cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100