Browse Source

Updates #3764

Add `shared` to `exports`, otherwise imports from `shared` cannot be
resolved when importing converse.js into another project (e.g. with Vite).
JC Brand 1 month ago
parent
commit
3125ed400e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      package.json

+ 3 - 1
package.json

@@ -17,7 +17,9 @@
         "types": "./types/index.d.ts",
         "default": "./dist/converse.js"
       }
-    }
+    },
+    "./dist/*": "./dist/*",
+    "./shared/*": "./src/shared/*"
   },
   "types": "./src/types/index.d.ts",
   "main": "./src/index.js",