Skip to content

Commit 344f824

Browse files
committed
build(storybook): fixes storybook build by upgrading readme plugin
1 parent 64672fa commit 344f824

File tree

9 files changed

+273
-424
lines changed

9 files changed

+273
-424
lines changed

.storybook/main.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import type { StorybookConfig } from '@storybook/web-components-vite';
22
import remarkGfm from 'remark-gfm';
3+
import { fileURLToPath } from 'node:url';
34

4-
const config: StorybookConfig = {
5+
const config: StorybookConfig & {
6+
managerEntries?: (entry?: string[]) => string[];
7+
} = {
58
stories: [
69
'../packages/**/*.mdx',
710
'../packages/**/*.story.@(js|jsx|mjs|ts|tsx)',
@@ -24,9 +27,17 @@ const config: StorybookConfig = {
2427
'@storybook/addon-links',
2528
'@storybook/addon-a11y',
2629
'@chromatic-com/storybook',
27-
'../storyhelpers/storybook-readme',
2830
],
2931

32+
managerEntries(entry = []) {
33+
return [
34+
...entry,
35+
fileURLToPath(
36+
import.meta.resolve('../storyhelpers/storybook-readme/manager.ts'),
37+
),
38+
];
39+
},
40+
3041
framework: {
3142
name: '@storybook/web-components-vite',
3243
options: {},

0 commit comments

Comments
 (0)