Skip to content

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

Closed

Description

@Brooooooklyn

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.

Activity

  1. added 3 commits that reference this issue on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions