Skip to content

feat: add entry option with glob support#214

Merged
sxzz merged 1 commit intomainfrom
issue-212
Mar 27, 2026
Merged

feat: add entry option with glob support#214
sxzz merged 1 commit intomainfrom
issue-212

Conversation

@sxzz
Copy link
Copy Markdown
Owner

@sxzz sxzz commented Mar 27, 2026

Summary

  • Adds an entry option to control which files get .d.ts generation using glob patterns (powered by picomatch)
  • When entry is specified, only matching files emit .d.ts chunks — even non-Rolldown entries
  • Supports negation patterns for exclusion (e.g., ['**', '!src/icons/**'])
  • Patterns are matched against file paths relative to cwd

Closes #28, closes #212

Test plan

  • Added test for include glob filtering (entry: 'input1.ts')
  • Added test for negation glob (entry: ['**/*.ts', '!input2.ts'])
  • All 196 existing tests pass
  • Typecheck passes

Add an `entry` option to control which files get `.d.ts` generation
using glob patterns. When specified, only matching files emit `.d.ts`
chunks, even if they aren't Rolldown entries. Supports negation
patterns for exclusion (e.g., `['**', '!src/icons/**']`).

Closes #28, closes #212
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 27, 2026

Open in StackBlitz

npm i https://pkg.pr.new/rolldown-plugin-dts@214

commit: 858d67c

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​types/​picomatch@​4.0.21001007482100

View full report

@sxzz sxzz merged commit c7079ee into main Mar 27, 2026
14 checks passed
@sxzz sxzz deleted the issue-212 branch March 27, 2026 08:23
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.

excluded field for genereted d.ts files entry option

1 participant