diff --git a/package.json b/package.json index 019821d..c663b64 100644 --- a/package.json +++ b/package.json @@ -16,9 +16,16 @@ "url": "https://github.com/mongodb-js/mongodb-connection-string-url/issues" }, "main": "lib/index.js", + "types": "lib/index.d.ts", "exports": { - "require": "./lib/index.js", - "import": "./.esm-wrapper.mjs" + "require": { + "default": "./lib/index.js", + "types": "./lib/index.d.ts" + }, + "import": { + "default": "./.esm-wrapper.mjs", + "types": "./lib/index.d.ts" + } }, "files": [ "LICENSE", @@ -58,4 +65,4 @@ "@types/whatwg-url": "^13.0.0", "whatwg-url": "^14.1.0 || ^13.0.0" } -} \ No newline at end of file +}