Skip to content

Commit

Permalink
Storybook build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
msmithNI committed Dec 16, 2024
1 parent debe390 commit 33c1264
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 33 deletions.
18 changes: 0 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 9 additions & 14 deletions packages/storybook/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { dirname, join } from 'path';
import remarkGfm from 'remark-gfm';
import CircularDependencyPlugin from 'circular-dependency-plugin';
import TerserPlugin from 'terser-webpack-plugin';
Expand All @@ -12,13 +11,13 @@ export const stories = [
];
export const addons = [
{
name: getAbsolutePath('@storybook/addon-essentials'),
name: '@storybook/addon-essentials',
options: {
outline: false,
docs: false
}
}, {
name: getAbsolutePath('@storybook/addon-docs'),
name: '@storybook/addon-docs',
options: {
mdxPluginOptions: {
mdxCompileOptions: {
Expand All @@ -27,12 +26,12 @@ export const addons = [
}
}
},
getAbsolutePath('@storybook/addon-a11y'),
getAbsolutePath('@storybook/addon-interactions'),
getAbsolutePath('@chromatic-com/storybook'),
getAbsolutePath('@storybook/addon-webpack5-compiler-swc'),
getAbsolutePath('storybook-addon-pseudo-states'),
getAbsolutePath('@storybook/addon-mdx-gfm')
'@storybook/addon-a11y',
'@storybook/addon-interactions',
'@chromatic-com/storybook',
'@storybook/addon-webpack5-compiler-swc',
'storybook-addon-pseudo-states',
'@storybook/addon-mdx-gfm'
];

export function webpackFinal(config) {
Expand Down Expand Up @@ -65,9 +64,5 @@ export function webpackFinal(config) {
}
export const staticDirs = ['public'];
export const framework = {
name: getAbsolutePath('@storybook/html-webpack5')
name: '@storybook/html-webpack5'
};

function getAbsolutePath(value) {
return dirname(require.resolve(join(value, 'package.json')));
}
1 change: 0 additions & 1 deletion packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"@storybook/addon-essentials": "^8.4.3",
"@storybook/addon-interactions": "^8.4.3",
"@storybook/addon-links": "^8.4.3",
"@storybook/addon-mdx-gfm": "^8.4.3",
"@storybook/addon-webpack5-compiler-swc": "^1.0.5",
"@storybook/cli": "^8.4.3",
"@storybook/csf": "^0.1.11",
Expand Down

0 comments on commit 33c1264

Please sign in to comment.