Skip to content

feat(dts)!: auto-enable dts when tsconfig declaration is true#872

Merged
sxzz merged 1 commit into
nextfrom
sxzz/auto-dts-from-tsconfig
Mar 26, 2026
Merged

feat(dts)!: auto-enable dts when tsconfig declaration is true#872
sxzz merged 1 commit into
nextfrom
sxzz/auto-dts-from-tsconfig

Conversation

@sxzz
Copy link
Copy Markdown
Member

@sxzz sxzz commented Mar 26, 2026

  • This PR contains AI-generated code, but I have carefully reviewed it myself. Otherwise, my PR may be closed.

Description

Auto-enable dts generation when compilerOptions.declaration is true in tsconfig. Previously, dts was only auto-enabled based on package.json fields (types, typings, or exports with types). Now tsdown also parses the tsconfig via parseTsconfig from rolldown-plugin-dts/internal as a fallback signal when those package.json fields are absent.

Linked Issues

Additional context

@sxzz sxzz changed the title feat(dts): auto-enable dts when tsconfig declaration is true feat(dts)!: auto-enable dts when tsconfig declaration is true Mar 26, 2026
@sxzz sxzz merged commit 0e35a82 into next Mar 26, 2026
3 of 4 checks passed
@sxzz sxzz deleted the sxzz/auto-dts-from-tsconfig branch March 26, 2026 12:37
@sxzz sxzz mentioned this pull request Apr 26, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant