From 152a16d012f8d84cb75e10296e51cda68b0cd1cd Mon Sep 17 00:00:00 2001 From: Boris Bera Date: Mon, 10 Jul 2023 08:37:54 -0400 Subject: [PATCH] Add type information to `exports.*` in package.json --- package.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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",