diff --git a/package.json b/package.json index 6950205d..2d46f955 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,14 @@ "main": "./dist/index.js", "module": "./dist/index.mjs", "exports": { - "require": "./dist/index.js", - "import": "./dist/index.mjs" + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.mjs" + } }, "types": "dist/index.d.ts", "repository": "git@github.com:reconbot/streaming-iterables.git",