microsoft / microsoft/TypeScript
Allow --build with Intermediate Errors - shouldn't happen on tsconfig errors
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.4k
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 117
Beschreibung
🔎 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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere das Verhalten mit der bereitgestellten tsconfig.json, die einen nicht vorhandenen Pfad erweitert, und rufe tsc mit --build auf. Verfolge, wie der Compiler die fehlende Basiskonfiguration während der Projekt-Builds verarbeitet; die Aufgabe ist abgeschlossen, wenn tsconfig-Fehler den Build stoppen, statt Dateien mit Standardwerten auszugeben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- build-system, cli
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100