Skip to content

Commit f1ddccb

Browse files
kylemhagilgur5
andauthored
feat: type-check stories during Storybook build (#876)
- add `check: true` to Storybook TS config - which runs `fork-ts-checker-webpack-plugin` to check types asynchronously in a separate process during Storybook build Co-authored-by: Anton Gilgur <[email protected]>
1 parent 427e5ad commit f1ddccb

File tree

1 file changed

+4
-0
lines changed
  • templates/react-with-storybook/.storybook

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
module.exports = {
22
stories: ['../stories/**/*.stories.@(ts|tsx|js|jsx)'],
33
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
4+
// https://storybook.js.org/docs/react/configure/typescript#mainjs-configuration
5+
typescript: {
6+
check: true, // type-check stories during Storybook build
7+
}
48
};

0 commit comments

Comments
 (0)