microsoft / microsoft/TypeScript
Allow --build with Intermediate Errors - shouldn't happen on tsconfig errors
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.4k
- Merge medio
- 1g 19h
- PR unite (30g)
- 117
Descrizione
🔎 Search Terms
intermediate error
🕗 Version & Regression Information
This is about new feature in 5.6
⏯ Playground Link
💻 Code
tsconfig.json
{
"extends": "../wrong/path/to/some/tsconfig.json",
"compilerOptions": {
// nothing, expects to inherit things
}
}
🙁 Actual behavior
When compiling such project, tsc does complain that it cannot find the base config, however it continues building. This is a big problem when the base config contains important things like "outDir": "${configDir}/lib" - TS will happily build using the defaults, writing a ton of .js and .d.ts files next to the source files.
🙂 Expected behavior
For tsconfig.json file errors, do not continue building the project.
Additional information about the issue
No response
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
Riproduci il comportamento con il tsconfig.json fornito, che estende un percorso inesistente, e invoca tsc con --build. Traccia il modo in cui il compilatore gestisce la configurazione di base mancante durante le build del progetto; il lavoro è completato quando gli errori di tsconfig interrompono la build invece di emettere file con i valori predefiniti.
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
- 35/100