Skip to content

Commit

Permalink
Add types to package.json exports
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispawley committed Feb 17, 2025
1 parent 0fa5236 commit 8f9cfe2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,28 @@
},
"exports": {
".": {
"import": "./dist/index.modern.js",
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.modern.js"
},
"require": "./dist/index.cjs",
"umd": "./dist/index.umd.js",
"browser": "./dist/index.module.js"
},
"./icons": {
"import": "./dist/icons.modern.js",
"import": {
"types": "./dist/icons.d.ts",
"default": "./dist/icons.modern.js"
},
"require": "./dist/icons.cjs",
"umd": "./dist/icons.umd.js",
"browser": "./dist/icons.module.js"
},
"./places": {
"import": "./dist/places.modern.js",
"import": {
"types": "./dist/places.d.ts",
"default": "./dist/places.modern.js"
},
"require": "./dist/places.cjs",
"umd": "./dist/places.umd.js",
"browser": "./dist/places.module.js"
Expand Down

0 comments on commit 8f9cfe2

Please sign in to comment.