dts: declarations written by a standalone `tsc` run are not augmented

Offen
#706 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
45/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
rust, typescript

Rechercherichtung

Read the implementation of the declaration plugin’s disk pass, especially matchDtsSources and injectDtsFile, then compare it with the README’s coverage note. Decide whether the issue should add a CLI or exported function for standalone tsc output, or document a declaration-plugin build workflow; done means standalone declaration builds no longer ship unaugmented classes, or the supported workflow is clearly documented.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Follow-up to #694. Found while reviewing #697.

#697 adds Ivy members to the .d.ts files that rolldown-plugin-dts, tsdown (.d.mts and .d.cts), vite-plugin-dts and @rollup/plugin-typescript write. A plain tsc -p tsconfig.lib.json run is outside the Vite / Rolldown build, so no plugin hook sees it. Libraries built that way still ship plain classes, and consumers fail with NG2012 (as in #681). The README lists this as not covered.

Possible directions:

  • A small CLI / exported function that runs the compiler over the sources and injects members into an existing declaration dir, using the same matchDtsSources + injectDtsFile as the plugin's disk pass.
  • Document running the build with a declaration plugin instead of a separate tsc step.
Vorherrschende Sprache
Rust
Sterne
245
Forks
26
Ø Merge
1 T. 23 Min.
Gemergte PRs (30 T.)
83

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus voidzero-dev/oxc-angular-compiler

Alle Issues in voidzero-dev/oxc-angular-compiler

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.