angular / angular/angular-cli

getMainFilePath util function fails because of hardcoded target name

Aperta
#26,517 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area: @schematics/angular freq1: low severity3: broken type: bug/fix
Lingua principale
TypeScript
Stelle
27k
Fork
11.8k
Merge medio
14h 23m
PR unite (30g)
162

Descrizione

### 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_

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
build-system, cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.