From e648a5f8dfa966b3eb4d7fa28f0b13b0104c6c52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar?= Date: Sat, 28 Oct 2023 18:22:28 +0200 Subject: [PATCH] Fix types export for Typescript v5 module resolution options (#9787) --- package.json | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index b1e01cd53..3d303203f 100644 --- a/package.json +++ b/package.json @@ -12,16 +12,40 @@ "types": "index.d.ts", "exports": { ".": { - "module": "./index.mjs", - "import": "./index.mjs", - "require": "./index.js", - "default": "./index.js" + "import": { + "types": "./index.d.ts", + "default": "./index.mjs" + }, + "module": { + "types": "./index.d.ts", + "default": "./index.mjs" + }, + "require": { + "types": "./index.d.ts", + "default": "./index.js" + }, + "default": { + "types": "./index.d.ts", + "default": "./index.js" + } }, "./icons": { - "module": "./index.mjs", - "import": "./index.mjs", - "require": "./index.js", - "default": "./index.js" + "import": { + "types": "./index.d.ts", + "default": "./index.mjs" + }, + "module": { + "types": "./index.d.ts", + "default": "./index.mjs" + }, + "require": { + "types": "./index.d.ts", + "default": "./index.js" + }, + "default": { + "types": "./index.d.ts", + "default": "./index.js" + } }, "./icons/*": [ "./icons/*"