Skip to content

Commit

Permalink
chore: update storybook and enable react-docgen-typescript (#2521)
Browse files Browse the repository at this point in the history
resolves #2173
  • Loading branch information
Barsnes authored Sep 26, 2024
1 parent 96e656f commit 07cd594
Show file tree
Hide file tree
Showing 3 changed files with 661 additions and 2,351 deletions.
5 changes: 1 addition & 4 deletions apps/storybook/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ const config: StorybookConfig = {
typescript: {
check: true,
/* If in prod, use docgen-typescript, locally use docgen */
reactDocgen:
env.NODE_ENV === 'production'
? 'react-docgen-typescript'
: 'react-docgen',
reactDocgen: 'react-docgen-typescript',
/**
* Enable this when docgen-typescript is faster
* See: https://github.com/storybookjs/storybook/issues/28269
Expand Down
28 changes: 14 additions & 14 deletions apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,28 @@
"@digdir/designsystemet-css": "workspace:^",
"@digdir/designsystemet-react": "workspace:^",
"@digdir/designsystemet-theme": "workspace:^",
"@storybook/addon-a11y": "^8.2.9",
"@storybook/addon-essentials": "^8.2.9",
"@storybook/addon-interactions": "^8.2.9",
"@storybook/addon-links": "^8.2.9",
"@storybook/addon-mdx-gfm": "^8.2.9",
"@storybook/addon-storysource": "^8.2.9",
"@storybook/addon-themes": "^8.2.9",
"@storybook/blocks": "^8.2.9",
"@storybook/manager-api": "^8.2.9",
"@storybook/react": "^8.2.9",
"@storybook/react-vite": "^8.2.9",
"@storybook/addon-a11y": "^8.3.3",
"@storybook/addon-essentials": "^8.3.3",
"@storybook/addon-interactions": "^8.3.3",
"@storybook/addon-links": "^8.3.3",
"@storybook/addon-mdx-gfm": "^8.3.3",
"@storybook/addon-storysource": "^8.3.3",
"@storybook/addon-themes": "^8.3.3",
"@storybook/blocks": "^8.3.3",
"@storybook/manager-api": "^8.3.3",
"@storybook/react": "^8.3.3",
"@storybook/react-vite": "^8.3.3",
"@storybook/test-runner": "^0.19.1",
"@storybook/theming": "^8.2.9",
"@storybook/types": "^8.2.9",
"@storybook/theming": "^8.3.3",
"@storybook/types": "^8.3.3",
"@types/react": "18.3.3",
"@types/react-dom": "^18.3.0",
"axe-playwright": "^2.0.2",
"concurrently": "^9.0.1",
"http-server": "^14.1.1",
"remark-gfm": "^4.0.0",
"rimraf": "^6.0.1",
"storybook": "^8.2.9",
"storybook": "^8.3.3",
"wait-on": "^8.0.1"
},
"jest-junit": {
Expand Down
Loading

0 comments on commit 07cd594

Please sign in to comment.