Skip to content

Commit

Permalink
Storybook: Specify tsconfig.
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphsps committed Sep 29, 2024
1 parent 30c75fb commit 4410ca9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/storybook/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { StorybookConfig } from '@storybook/react-vite';
import path from 'node:path';

const config: StorybookConfig = {
stories: ['../../**/src/**/*.mdx', '../../**/src/**/*.stories.@(ts|tsx)'],
staticDirs: [],
Expand All @@ -24,8 +26,8 @@ const config: StorybookConfig = {
typescript: {
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true
//tsconfigPath: path.resolve(path.join(process.cwd().split('/packages')[0], 'tsconfig.json'))
shouldExtractLiteralValuesFromEnum: true,
tsconfigPath: path.resolve(path.join(process.cwd().split('/packages')[0], 'tsconfig.json'))
},
check: true
},
Expand Down

0 comments on commit 4410ca9

Please sign in to comment.