angular / angular/angular-cli

getMainFilePath util function fails because of hardcoded target name

未关闭
#26,517 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area: @schematics/angular freq1: low severity3: broken type: bug/fix
主要语言
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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。