Skip to content

Commit

Permalink
Support index-modules in exports
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Nov 10, 2023
1 parent f592e11 commit cd55fc9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions files/__addonLocation__/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@
"default": "./dist/index.js"
},
"./*": {
"types": "./declarations/*.d.ts",
"default": "./dist/*.js"
"types": ["./declarations/*.d.ts", "./declarations/*/index.d.ts"],
"default": ["./dist/*.js", "./dist/*/index.js"]
},<% } else { %>
".": "./dist/index.js",
"./*": "./dist/*.js",<% } %>
Expand All @@ -112,7 +112,8 @@
"typesVersions": {
"*": {
"*": [
"declarations/*"
"declarations/*",
"declarations/*/index"
]
}
}<% } %>
Expand Down

0 comments on commit cd55fc9

Please sign in to comment.