angular / angular/angular-cli

getMainFilePath util function fails because of hardcoded target name

オープン
#26,517 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: @schematics/angular freq1: low severity3: broken type: bug/fix
主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
14時間 23分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。