aboutsummaryrefslogtreecommitdiff
path: root/packages/web-util/package.json
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-02-16 03:23:42 +0100
committerFlorian Dold <florian@dold.me>2023-02-16 03:23:42 +0100
commita906263f74627dd928c581f388cf12faa3b43476 (patch)
tree1497bad4effb9298b2a08659b9b37d9fb5a3440a /packages/web-util/package.json
parent08b120bc8d4a738b80c3e0d3f1703b1320f32080 (diff)
use node16 module resolution
Diffstat (limited to 'packages/web-util/package.json')
-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",