aboutsummaryrefslogtreecommitdiff
path: root/packages/web-util
diff options
context:
space:
mode:
Diffstat (limited to 'packages/web-util')
-rw-r--r--packages/web-util/package.json20
1 files changed, 16 insertions, 4 deletions
diff --git a/packages/web-util/package.json b/packages/web-util/package.json
index 5ff01d06a..4b2f0d27c 100644
--- a/packages/web-util/package.json
+++ b/packages/web-util/package.json
@@ -12,10 +12,22 @@
"license": "AGPL-3.0-or-later",
"private": false,
"exports": {
- "./lib/tests/swr": "./lib/tests/swr.mjs",
- "./lib/tests/mock": "./lib/tests/mock.mjs",
- "./lib/index.browser": "./lib/index.browser.mjs",
- "./lib/index.node": "./lib/index.node.cjs"
+ "./lib/tests/swr": {
+ "types": "./lib/tests/swr.js",
+ "default": "./lib/tests/swr.mjs"
+ },
+ "./lib/tests/mock": {
+ "types": "./lib/tests/mock.js",
+ "default": "./lib/tests/mock.mjs"
+ },
+ "./lib/index.browser": {
+ "types": "./lib/index.browser.js",
+ "default": "./lib/index.browser.mjs"
+ },
+ "./lib/index.node": {
+ "types": "./lib/index.node.js",
+ "default": "./lib/index.node.cjs"
+ }
},
"scripts": {
"prepare": "tsc && ./build.mjs",