-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.ts
32 lines (31 loc) · 899 Bytes
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const path = require('path')
module.exports = {
stories: ['../src/**/*.stories.(tsx|mdx)'],
addons: [
// Addons
'@storybook/addon-a11y/register',
'@storybook/addon-actions/register',
'@storybook/addon-knobs/register',
'@storybook/addon-links/register',
'@storybook/addon-storysource/register',
// Presets
{
name: '@storybook/preset-typescript',
options: {
tsLoaderOptions: {
configFile: path.resolve(__dirname, './tsconfig.json'),
},
tsDocgenLoaderOptions: {
tsconfigPath: path.resolve(__dirname, './tsconfig.json'),
},
forkTsCheckerWebpackPluginOptions: {
colors: false, // disables built-in colors in logger messages
},
include: [
path.resolve(__dirname, '../src'),
path.resolve(__dirname, '../.storybook'),
],
},
},
],
}