Skip to content

Commit

Permalink
fix: [M3-8904] - Fix Storybook docgen (#11264)
Browse files Browse the repository at this point in the history
* Remove ts-docgen optimization

* Added changeset: Storybook docgen
  • Loading branch information
hkhalil-akamai authored Nov 15, 2024
1 parent 74b934e commit 8492246
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 62 deletions.
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11264-fixed-1731617734121.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

Storybook docgen ([#11264](https://github.com/linode/manager/pull/11264))
7 changes: 0 additions & 7 deletions packages/manager/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import type { StorybookConfig } from '@storybook/react-vite';
import { mergeConfig } from 'vite';
import { getReactDocgenTSFileGlobs } from './utils';

const typeScriptFileGlobs = getReactDocgenTSFileGlobs();

const config: StorybookConfig = {
stories: [
Expand Down Expand Up @@ -41,10 +38,6 @@ const config: StorybookConfig = {
prop.parent
? !/node_modules\/(?!@mui)/.test(prop.parent.fileName)
: true,
// Only compile files that have stories for faster local development performance
include: /(development|test)/i.test(process.env.NODE_ENV ?? '')
? typeScriptFileGlobs
: undefined,
},
reactDocgen: 'react-docgen-typescript',
},
Expand Down
27 changes: 0 additions & 27 deletions packages/manager/.storybook/utils.test.ts

This file was deleted.

28 changes: 0 additions & 28 deletions packages/manager/.storybook/utils.ts

This file was deleted.

0 comments on commit 8492246

Please sign in to comment.