Skip to content

Commit

Permalink
fix: exports.types entry in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Sv443 committed Sep 16, 2024
1 parent a1a8db9 commit a8bca8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/swift-dingos-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sv443-network/userutils": patch
---

Added `exports.types` in addition to just `types` in package.json
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
"description": "Library with various utilities for userscripts - register listeners for when CSS selectors exist, intercept events, create persistent & synchronous data stores, modify the DOM more easily and more",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/lib/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"browser": "./dist/index.global.js"
"browser": "./dist/index.global.js",
"types": "./dist/lib/index.d.ts"
}
},
"types": "dist/lib/index.d.ts",
"type": "module",
"scripts": {
"lint": "tsc --noEmit && eslint .",
Expand Down

0 comments on commit a8bca8f

Please sign in to comment.