lisonge / vite-plugin-monkey

A vite plugin server and build your.user.js for userscript engine like Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat
MIT License
1.31k stars 70 forks source link

Fix exports #69

Closed Alxandr closed 1 year ago

Alxandr commented 1 year ago
Using typescript and ` "moduleResolution": "bundler",`, I have to have the following patch:
diff --git a/package.json b/package.json
index d3f8e4c5caa9d8ce4aa92c6f9fcf9f6b4a181b8e..daa209061aadbb46d2a4c1749bafa7431786ce0c 100644
--- a/package.json
+++ b/package.json
@@ -20,6 +20,12 @@
     "./dist/native": {
       "import": "./dist/native/index.mjs",
       "types": "./dist/native/index.d.ts"
+    },
+    "./client": {
+      "types": "./client.d.ts"
+    },
+    "./global": {
+      "types": "./global.d.ts"
     }
   },
   "sideEffects": false,

Could these be added to the package?

lisonge commented 1 year ago

v3.1.1

Alxandr commented 1 year ago

Thank you :)

lisonge commented 1 year ago

Thank you :)

you are welcome, you can pull requests next time if you want