Skip to content

Update react types path and enable dts generation for react build#95

Merged
MattCCC merged 1 commit intomasterfrom
fix-react-typings
Jul 22, 2025
Merged

Update react types path and enable dts generation for react build#95
MattCCC merged 1 commit intomasterfrom
fix-react-typings

Conversation

@MattCCC
Copy link
Owner

@MattCCC MattCCC commented Jul 22, 2025

This pull request includes updates to the TypeScript configuration and package export paths to improve module resolution and type definitions for the React package.

TypeScript configuration improvements:

  • tsup.config.ts: Enabled the generation of TypeScript declaration files (dts: true) to ensure type definitions are included in the build output.

Package export path updates:

  • package.json: Updated the types field for the ./react export to point to ./dist/react/index.d.ts, aligning it with the new directory structure.

@github-actions
Copy link

size-limit report 📦

Path Size
dist/browser/index.mjs 5.38 KB (0%)
dist/browser/index.global.js 5.55 KB (0%)
dist/node/index.js 5.46 KB (0%)
dist/react/index.mjs 8.42 KB (0%)
dist/react/index.js 9.13 KB (0%)

@MattCCC MattCCC merged commit 093393b into master Jul 22, 2025
10 checks passed
@MattCCC MattCCC deleted the fix-react-typings branch July 22, 2025 23:20
@MattCCC
Copy link
Owner Author

MattCCC commented Jul 22, 2025

I proceed with hotfix of typing and release of 4.0.2.

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