Skip to content

Commit

Permalink
chore: resolve imports
Browse files Browse the repository at this point in the history
add src import in storybook, TS and rollup
  • Loading branch information
etienneburdet committed Jan 12, 2024
1 parent 04cdeff commit d6c6b6d
Show file tree
Hide file tree
Showing 60 changed files with 55,038 additions and 54,387 deletions.
11 changes: 11 additions & 0 deletions packages/visualizations-react/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
const path = require('path');

module.exports = {
stories: ['../stories/**/*.stories.@(ts|tsx|js|jsx)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
// https://storybook.js.org/docs/react/configure/typescript#mainjs-configuration
typescript: {
check: true, // type-check stories during Storybook build
},
webpackFinal: (config) => {
config.resolve.alias = {
...config.resolve.alias,
src: path.resolve(__dirname, '../src'),
reactify: path.resolve(__dirname, '../src/reactify'),
};

return config;
},
};
Loading

0 comments on commit d6c6b6d

Please sign in to comment.