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