Skip to content

Commit

Permalink
🛠️ [Package] Add types to exports object to fix some build configs (
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi authored Nov 24, 2023
1 parent f0670f3 commit 14efeef
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 59 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-timers-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'emitten': patch
---

Repeat types path in exports object to help mitigate failure to resolve types.
114 changes: 57 additions & 57 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"exports": {
".": {
"import": "./dist/emitten.es.js",
"require": "./dist/emitten.umd.js"
"require": "./dist/emitten.umd.js",
"types": "./dist/index.d.ts"
}
},
"engines": {
Expand All @@ -55,7 +56,7 @@
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@types/node": "^20.9.4",
"@types/node": "^20.10.0",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@vitest/coverage-v8": "^0.34.6",
"@vitest/ui": "^0.34.6",
Expand Down

0 comments on commit 14efeef

Please sign in to comment.