Procházet zdrojové kódy

fix: exports.types entry in package.json

Sv443 před 7 měsíci
rodič
revize
a8bca8fd9c
2 změnil soubory, kde provedl 8 přidání a 2 odebrání
  1. 5 0
      .changeset/swift-dingos-marry.md
  2. 3 2
      package.json

+ 5 - 0
.changeset/swift-dingos-marry.md

@@ -0,0 +1,5 @@
+---
+"@sv443-network/userutils": patch
+---
+
+Added `exports.types` in addition to just `types` in package.json

+ 3 - 2
package.json

@@ -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 .",