From a0ffdc523f80eaba8d379a995a4fbd3b88052923 Mon Sep 17 00:00:00 2001 From: Sergey Roytman Date: Sun, 29 Oct 2023 12:07:09 +0200 Subject: [PATCH] feat: fix for Vite (#1705) --- package.json | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d0241b59a3..a28accd152 100644 --- a/package.json +++ b/package.json @@ -7,18 +7,32 @@ "exports": { "./package.json": "./package.json", ".": { + "types": "./dist/types.d.ts", "import": "./dist/esm/src/index.js", "default": "./dist/main.js" }, "./dist/": "./dist/", "./icons": { + "types": "./dist/esm/components/Icon/Icons/index.d.ts", "import": "./dist/esm/src/components/Icon/Icons/icons.js", "default": "./dist/allIcons.js" }, - "./interactionsTests": "./dist/esm/src/tests/interactionsTests.js", - "./testIds": "./dist/esm/src/tests/testIds.js", + "./interactionsTests": { + "types": "./dist/esm/tests/interactions-utils.d.ts", + "import": "./dist/esm/src/tests/interactionsTests.js", + "default": "./dist/esm/src/tests/interactionsTests.js" + }, + "./testIds": { + "types": "./dist/esm/tests/test-ids-utils.d.ts", + "import": "./dist/esm/src/tests/testIds.js", + "default": "./dist/esm/src/tests/testIds.js" + }, "./storybookComponents": "./dist/storybook/index.js", - "./next": "./dist/esm/src/next/next.js", + "./next": { + "types": "./dist/esm/next/next.d.ts", + "import": "./dist/esm/src/next/next.js", + "default": "./dist/esm/src/next/next.js" + }, "./tokens": "./dist/tokens/tokens.css", "./mockedClassNames": { "import": "./dist/mocked_classnames_esm/src/index.js"