Skip to content

Commit cbe658a

Browse files
authored
Merge pull request #167 from koji/fix_storybook-errors
Fix storybook errors
2 parents ff17674 + b61e43a commit cbe658a

6 files changed

Lines changed: 5638 additions & 11 deletions

File tree

.storybook/main.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import type { StorybookConfig } from "@storybook/react-vite";
22

33
const config: StorybookConfig = {
4-
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
5-
staticDirs: ["../public"],
4+
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
65
addons: [
76
"@storybook/addon-links",
87
"@storybook/addon-essentials",
@@ -12,5 +11,9 @@ const config: StorybookConfig = {
1211
name: "@storybook/react-vite",
1312
options: {},
1413
},
14+
docs: {
15+
autodocs: "tag",
16+
},
1517
};
16-
export default config;
18+
19+
export default config;

.storybook/preview.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Preview } from "@storybook/react";
22

33
const preview: Preview = {
44
parameters: {
5+
actions: { argTypesRegex: "^on[A-Z].*" },
56
controls: {
67
matchers: {
78
color: /(background|color)$/i,
@@ -11,4 +12,4 @@ const preview: Preview = {
1112
},
1213
};
1314

14-
export default preview;
15+
export default preview;

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
"storybook": "^8.5.6",
5858
"typescript": "^5.5.3",
5959
"typescript-eslint": "^8.0.1",
60-
"vite": "^5.4.1"
60+
"vite": "^5.4.1",
61+
"vite-plugin-dts": "^4.5.4"
6162
},
6263
"resolutions": {
6364
"jackspeak": "2.1.1"
@@ -67,5 +68,5 @@
6768
"plugin:storybook/recommended"
6869
]
6970
},
70-
"packageManager": "yarn@4.5.0"
71+
"packageManager": "pnpm@10.11.1+sha512.e519b9f7639869dc8d5c3c5dfef73b3f091094b0a006d7317353c72b124e80e1afd429732e28705ad6bfa1ee879c1fce46c128ccebd3192101f43dd67c667912"
7172
}

0 commit comments

Comments
 (0)