Skip to content

Commit a40bacf

Browse files
chore: update exports entry in package.json with type mappings (#89)
1 parent 10e54fa commit a40bacf

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,16 @@
1616
"url": "https://github.com/mongodb-js/mongodb-connection-string-url/issues"
1717
},
1818
"main": "lib/index.js",
19+
"types": "lib/index.d.ts",
1920
"exports": {
20-
"require": "./lib/index.js",
21-
"import": "./.esm-wrapper.mjs"
21+
"require": {
22+
"default": "./lib/index.js",
23+
"types": "./lib/index.d.ts"
24+
},
25+
"import": {
26+
"default": "./.esm-wrapper.mjs",
27+
"types": "./lib/index.d.ts"
28+
}
2229
},
2330
"files": [
2431
"LICENSE",
@@ -58,4 +65,4 @@
5865
"@types/whatwg-url": "^13.0.0",
5966
"whatwg-url": "^14.1.0 || ^13.0.0"
6067
}
61-
}
68+
}

0 commit comments

Comments
 (0)