Skip to content

fix: declare top-level types field for the npm TypeScript badge#2

Merged
ParzivalEugene merged 1 commit into
masterfrom
fix/types-field
May 31, 2026
Merged

fix: declare top-level types field for the npm TypeScript badge#2
ParzivalEugene merged 1 commit into
masterfrom
fix/types-field

Conversation

@ParzivalEugene
Copy link
Copy Markdown
Contributor

npm's TypeScript badge keys off the top-level types field. We had per-subpath exports[...].types (so consumers got types) but no top-level field, so npmjs.com didn't show the TS badge. Adds "types": "./dist/index.d.ts".

Verified: bun test green, bun run build emits the declaration files.

@ParzivalEugene ParzivalEugene merged commit b4198c4 into master May 31, 2026
2 checks passed
@ParzivalEugene ParzivalEugene deleted the fix/types-field branch May 31, 2026 20: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.

1 participant