Files
cunningham/packages/react/.storybook/main.cjs
Nathan Vasse be1c9d000b (react) add tokens.ts files handling
These files will be used to define the custom design tokens per components.
They are automatically aggregated by the packages/react/cunningham.ts file,
this is why handling typescript config file was important.
2023-01-11 11:01:56 +01:00

32 lines
684 B
JavaScript

const viteTsconfig = require('vite-tsconfig-paths');
const tsconfigPaths = viteTsconfig.default;
const { mergeConfig } = require('vite');
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
'@storybook/preset-scss'
],
"framework": "@storybook/react",
"core": {
"builder": "@storybook/builder-vite"
},
staticDirs: [
'dist',
],
"features": {
"storyStoreV7": true
},
async viteFinal(config) {
return mergeConfig(config, {
plugins: [tsconfigPaths()],
});
},
}