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

未關閉
#706 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
45/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
rust, typescript

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.
主要語言
Rust
星號
245
分支
26
平均合併
1 天 23 分鐘
30 天內合併 PR
83

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

voidzero-dev/oxc-angular-compiler 的其他 Issue

查看 voidzero-dev/oxc-angular-compiler 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。