microsoft / microsoft/TypeScript
How to find/debug what file(s) included given file during typescript compilation
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.3k
- Merge medio
- 2g 4h
- PR unite (30g)
- 132
Descrizione
Search Terms
find why was file included during typescript build
Suggestion
Be able to find out why a file was checked by TS compiler during a build.
Use Cases
Sometimes testing files gets somehow mixed into the type checking for dev/prod builds.
Examples
If a flag explain-inclusion=FLFolder.mock.ts is present:
projects/folder-listing/src/app/services/FLEntities/FLFolder.mock.ts was included, because it was requested by:
projects/folder-listing/src/app/services/FLEntities/FLFolder.tsat (3:26)projects/folder-listing/src/app/services/main.service.ts(7:10)
... (Only first level, the developer should repeat the process as needed)
Checklist
My suggestion meets these guidelines:
- This wouldn't be a breaking change in existing TypeScript/JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
- This feature would agree with the rest of TypeScript's Design Goals.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
L’issue non indica file di implementazione, test o punti di ingresso del compilatore. Inizia tracciando come TypeScript determina l’inclusione dei file e come vengono esposte le diagnostiche esistenti della riga di comando. Il lavoro è completato quando esiste un modo documentato o testato per identificare perché un file è stato incluso, includendo il file richiedente e la posizione nel codice sorgente descritta nell’esempio.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- compilers
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100