Skip to content

Commit

Permalink
fix: Correctly add exports of public entry point
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Jun 19, 2024
1 parent 5204be8 commit a935b73
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
"default": "./dist/index.mjs",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./public": {
"types": "./dist/public.d.ts",
"default": "./dist/public.mjs",
"import": "./dist/public.mjs",
"require": "./dist/public.cjs"
}
},
"main": "dist/index.cjs",
Expand Down
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export default createLibConfig(
public: join(__dirname, 'lib', 'publicShare.ts'),
},
{
DTSPluginOptions: {
rollupTypes: true,
},
config: {
test: {
coverage: {
Expand Down

0 comments on commit a935b73

Please sign in to comment.