microsoft / microsoft/TypeScript
Set TypeScript compiler's base/working directory
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 117
Beschreibung
It looks like TypeScript compiler resolves files relative to the location of the tsconfig.json file (however, I couldn't find anything about paths resolution in the official documentation).
Is there a way to specify an alternative base/working directory, which will be used for relative paths resolution?
I want to use a generic tsconfig.json file to compile multiple projects in various directories (one at a time).
P/S: I've created a question on StackOverflow first, but haven't received any attention there, so I've decided to ask here directly.
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
Das Issue nennt tsconfig.json und die relative Pfadauflösung von TypeScript, aber keine Quelldateien, Tests oder Compiler-Einstiegspunkte. Beginne damit, nachzuverfolgen, wie der Compiler tsconfig.json lädt und Pfade auflöst, und bestimme anschließend den Umfang eines alternativen Basisverzeichnisses. Als abgeschlossen sollte ein definiertes Verhalten sowie eine entsprechende Implementierung oder Dokumentation vorliegen, mit Tests für mehrere Projektpositionen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- compilers
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100