From c788cd8d61fae2760d76ce8c2e71664cded10239 Mon Sep 17 00:00:00 2001 From: Arjun <14841132+arjunvegda@users.noreply.github.com> Date: Sun, 15 Jan 2023 19:09:42 -0500 Subject: [PATCH] fix(utils): types for /utils entry point --- package.json | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 115991c9..082418be 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,6 @@ }, "sideEffects": false, "source": "./src/index.ts", - "types": "./dist/index.d.ts", "main": "./dist/index.cjs.js", "exports": { "./package.json": "./package.json", @@ -17,22 +16,26 @@ "types": "./dist/index.d.mts", "default": "./dist/index.esm.mjs" }, - "default": { - "types": "./dist/index.d.ts", - "default": "./dist/index.cjs.js" - } + "types": "./dist/index.d.ts", + "default": "./dist/index.cjs.js" }, "./*": { "import": { "types": "./dist/*.d.mts", "default": "./dist/*.esm.mjs" }, - "default": { - "types": "./dist/*.d.ts", - "default": "./dist/*.cjs.js" - } + "types": "./dist/*.d.ts", + "default": "./dist/*.cjs.js" + } + }, + "typesVersions": { + "*": { + "*": [ + "./dist/*.d.ts" + ] } }, + "types": "./dist/index.d.ts", "files": [ "dist", "package.json"