Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions packages/library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
"module": "dist/react-git-log.js",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/react-git-log.js"
".": {
"types": "./dist/index.d.ts",
"import": "./dist/react-git-log.js"
},
"./dist/index.css": "./dist/index.css"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need /dist in the entry point here, a bit cleaner straight from the root IMO

Suggested change
"./dist/index.css": "./dist/index.css"
"./styles.css": "./dist/index.css"

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably also worth including this in the package.json to prevent CSS from being tree-shaken. Although I'm happy to make the changes.

"sideEffects": [
  "./dist/*.css"
]

},
"files": [
"dist/",
Expand Down
Loading