From 9d6401418519bbfcf69d329dae30f092734c25b6 Mon Sep 17 00:00:00 2001 From: Fred Visser <1458528+fredvisser@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:09:34 -0600 Subject: [PATCH] Fix Storybook build --- package-lock.json | 18 ------------------ packages/storybook/.storybook/main.js | 22 ++++++++-------------- packages/storybook/package.json | 1 - 3 files changed, 8 insertions(+), 33 deletions(-) diff --git a/package-lock.json b/package-lock.json index e9216c6146..9211aa3a24 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7307,23 +7307,6 @@ } } }, - "node_modules/@storybook/addon-mdx-gfm": { - "version": "8.4.6", - "resolved": "https://registry.npmjs.org/@storybook/addon-mdx-gfm/-/addon-mdx-gfm-8.4.6.tgz", - "integrity": "sha512-wagsSBUN6pwcSZSWxp/aOhE16ZKI8ZW4XeRT6QivySmkJaLcbva+HNvQOijdXIM28W8PprKjqtyVa8nu4YQxsw==", - "dev": true, - "dependencies": { - "remark-gfm": "^4.0.0", - "ts-dedent": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/storybook" - }, - "peerDependencies": { - "storybook": "^8.4.6" - } - }, "node_modules/@storybook/addon-measure": { "version": "8.4.6", "resolved": "https://registry.npmjs.org/@storybook/addon-measure/-/addon-measure-8.4.6.tgz", @@ -28144,7 +28127,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", diff --git a/packages/storybook/.storybook/main.js b/packages/storybook/.storybook/main.js index 4cb5852aa9..4c7d545800 100644 --- a/packages/storybook/.storybook/main.js +++ b/packages/storybook/.storybook/main.js @@ -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'; @@ -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: { @@ -27,12 +26,11 @@ 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' ]; export function webpackFinal(config) { @@ -65,9 +63,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'))); -} diff --git a/packages/storybook/package.json b/packages/storybook/package.json index f791668487..9651a049b4 100644 --- a/packages/storybook/package.json +++ b/packages/storybook/package.json @@ -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",