Jelajahi Sumber

fix: modify exports field in package.json.

- https://github.com/timlrx/rehype-prism-plus/issues/65
- https://github.com/timlrx/rehype-prism-plus/pull/64#issuecomment-1667103879
- https://github.com/timlrx/rehype-prism-plus/issues/63
- https://github.com/uiwjs/react-md-editor/issues/561
jaywcjlove 2 tahun lalu
induk
melakukan
6dab3dfe4f
1 mengubah file dengan 16 tambahan dan 4 penghapusan
  1. 16 4
      package.json

+ 16 - 4
package.json

@@ -11,10 +11,22 @@
   "types": "./dist/index.d.ts",
   "type": "module",
   "exports": {
-    ".": "./dist/rehype-prism-plus.es.js",
-    "./common": "./dist/common.es.js",
-    "./all": "./dist/all.js",
-    "./generator": "./dist/generator.es.js"
+    ".": {
+      "types": "./dist/index.d.ts",
+      "default": "./dist/index.es.js"
+    },
+    "./common": {
+      "types": "./dist/common.d.ts",
+      "default": "./dist/common.es.js"
+    },
+    "./all": {
+      "types": "./dist/all.d.ts",
+      "default": "./dist/all.es.js"
+    },
+    "./generator": {
+      "types": "./dist/generator.d.ts",
+      "default": "./dist/generator.es.js"
+    }
   },
   "typesVersions": {
     "*": {