microsoft / microsoft/TypeScript
Build mode handling of emitDeclarationOnly has not been generalized to cover noEmit
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.4k
- Merge medio
- 1g 19h
- PR unite (30g)
- 117
Descrizione
Discovered while investigating #45082 - when stack.ts is updated, the rebuild reason (as of fe7962af3d20b0cefb9cf4345923d1adc82d48c7) is Status.OutputMissing because the .js, .js.map, .d.ts, and .d.ts.map files don't exist. The immediate cause is that getAllProjectOutputs is returning too many values, but the fix probably belongs deeper, e.g. in getOutputJSFileName and getEmitDeclarations (which might have unforeseen consequences).
I am not presently aware of a resulting correctness problem.
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
Inizia in src/compiler/emitter.ts da getAllProjectOutputs e getOutputJSFileName, quindi esamina getEmitDeclarations in src/compiler/utilities.ts. Traccia il modo in cui noEmit e emitDeclarationOnly influenzano gli output previsti e verifica che l'aggiornamento di stack.ts non segnali più output mancanti quando i file corrispondenti non vengono emessi intenzionalmente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- build-system, compilers
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100