Skip to content

Commit

Permalink
Fix: Update package.json exports to include type definitions
Browse files Browse the repository at this point in the history
- Modified package.json exports to ensure type definitions are correctly resolved

- This change addresses the issue of missing type declarations when importing the module
  • Loading branch information
jude-sonic committed May 29, 2024
1 parent a10c86f commit 76a4224
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"exports": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts"
}
},
"scripts": {
"prepublish": "npm run build",
Expand Down

0 comments on commit 76a4224

Please sign in to comment.