Skip to content

Commit 866e12b

Browse files
authored
fix: use exports conditions (#43)
1 parent 8383056 commit 866e12b

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"name": "@msw/playwright",
44
"version": "0.6.4",
55
"description": "Mock Service Worker binding for Playwright",
6-
"main": "./build/index.js",
7-
"types": "./build/index.d.ts",
6+
"main": "./build/index.mjs",
7+
"types": "./build/index.d.mts",
8+
"exports": {
9+
".": {
10+
"types": "./build/index.d.mts",
11+
"default": "./build/index.mjs"
12+
}
13+
},
814
"scripts": {
915
"dev": "tsdown --watch",
1016
"test": "playwright test",
@@ -60,4 +66,4 @@
6066
"@mswjs/interceptors": "^0.41.3",
6167
"outvariant": "^1.4.3"
6268
}
63-
}
69+
}

0 commit comments

Comments
 (0)