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

Đang mở
#706 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust, typescript

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Rust
Star
245
Fork
26
Merge trung bình
1 ngày 23 phút
Pull request đã merge (30 ngày)
83

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của voidzero-dev/oxc-angular-compiler

Tất cả issue của voidzero-dev/oxc-angular-compiler

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.