Skip to content

Commit

Permalink
🛠️ [Package] Add types to exports object to fix some build configs (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi authored Nov 24, 2023
1 parent 2e60ea3 commit ae3a112
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 67 deletions.
5 changes: 5 additions & 0 deletions .changeset/flat-phones-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'earwurm': patch
---

Fix failure to resolve types in some projects.
124 changes: 62 additions & 62 deletions package-lock.json

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

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"exports": {
".": {
"import": "./dist/earwurm.es.js",
"require": "./dist/earwurm.umd.js"
"require": "./dist/earwurm.umd.js",
"types": "./dist/index.d.ts"
}
},
"engines": {
Expand All @@ -55,12 +56,12 @@
"release": "npm run build && changeset publish"
},
"dependencies": {
"emitten": "^0.6.0"
"emitten": "^0.6.1"
},
"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 All @@ -79,6 +80,6 @@
"vitest": "^0.34.6"
},
"peerDependencies": {
"emitten": "^0.6.0"
"emitten": "^0.6.1"
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"target": "esnext",
"module": "esnext",
"lib": ["esnext", "dom"],
"moduleResolution": "node",
"moduleResolution": "bundler",
"strict": true,
"allowJs": false,
"allowSyntheticDefaultImports": true,
Expand Down

0 comments on commit ae3a112

Please sign in to comment.