From 28e652fdb002e5a0ffc27a51b68f3bf31ff36cc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Saracca?= Date: Wed, 16 Oct 2024 16:48:46 -0300 Subject: [PATCH] chore: import react to avoid UMD typescript warning --- .storybook/preview.tsx | 1 + packages/design-system/.storybook/preview.tsx | 1 + packages/design-system/tsconfig.json | 9 +-------- tsconfig.json | 3 +-- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index dba36418e..820dd4432 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -1,3 +1,4 @@ +import React from 'react' import type { Preview } from '@storybook/react' import { ThemeProvider } from '@iqss/dataverse-design-system' import { createBrowserRouter, RouteObject, RouterProvider } from 'react-router-dom' diff --git a/packages/design-system/.storybook/preview.tsx b/packages/design-system/.storybook/preview.tsx index 39e207401..e26e6e16b 100644 --- a/packages/design-system/.storybook/preview.tsx +++ b/packages/design-system/.storybook/preview.tsx @@ -1,3 +1,4 @@ +import React from 'react' import type { Preview } from '@storybook/react' import { ThemeProvider } from '../src/lib/components/theme/ThemeProvider' import DocumentationTemplate from '../src/lib/stories/DocumentationTemplate.mdx' diff --git a/packages/design-system/tsconfig.json b/packages/design-system/tsconfig.json index 01b25b1cd..757f3a260 100644 --- a/packages/design-system/tsconfig.json +++ b/packages/design-system/tsconfig.json @@ -17,13 +17,6 @@ "noEmit": true, "jsx": "react-jsx" }, - "include": [ - "src", - "tests", - "vite.config.ts", - "cypress.config.ts", - ".storybook/test-runner.ts", - ".storybook/*.tsx" - ], + "include": ["src", "tests", "vite.config.ts", "cypress.config.ts", ".storybook/test-runner.ts"], "exclude": ["tests/**/**.spec.ts", "tests/**/**.spec.tsx"] } diff --git a/tsconfig.json b/tsconfig.json index 5b8d8b3d0..7a25b67d2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -28,8 +28,7 @@ "cypress.config.ts", "vite.config.ts", "packages/design-system/src/", - "public", - ".storybook/*.tsx" + "public" ], "exclude": ["tests/**/**.spec.ts", "tests/**/**.spec.tsx"] }