Skip to content

Commit

Permalink
fix: add individual component exports (#739)
Browse files Browse the repository at this point in the history
We recently added an exports key to the package.json, which made
it so that components could only be imported from the root of the
package. In some situations this is not desired as it makes it more
difficult to share components between projects using module sharing
and causes bloat in the bundle. This commit adds back the individual
component exports.
  • Loading branch information
brentswisher authored Apr 10, 2024
1 parent 446b66d commit f026ecb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/warm-nails-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ithaka/pharos": patch
---

Add individual components to export list
2 changes: 2 additions & 0 deletions packages/pharos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@
"./lib": "./lib/index.js",
"./lib/index": "./lib/index.js",
"./lib/patches/*": "./lib/patches/*.js",
"./lib/components/*": "./lib/components/*.js",
"./lib/react-components": "./lib/react-components/index.js",
"./lib/react-components/*": "./lib/react-components/*.js",
"./lib/styles/*": "./lib/styles/*.js",
"./lib/styles/*.css": "./lib/styles/*.css",
"./lib/styles/*.scss": "./lib/styles/*.scss",
Expand Down

0 comments on commit f026ecb

Please sign in to comment.