diff --git a/packages/project-tailwind/.storybook/main.ts b/packages/project-tailwind/.storybook/main.ts index 56826f100..bc3b592c0 100644 --- a/packages/project-tailwind/.storybook/main.ts +++ b/packages/project-tailwind/.storybook/main.ts @@ -5,7 +5,7 @@ import { StorybookConfig } from '@storybook/react-vite'; * This function is used to resolve the absolute path of a package. * It is needed in projects that use Yarn PnP or are set up within a monorepo. */ -function getAbsolutePath(value) { +function getAbsolutePath(value: string) { return dirname(require.resolve(join(value, 'package.json'))); }