Storybook's `stories` glob was emptied when core-ui became an optional scaffoldable package. With core-ui present in the repo, wire the glob back so its six stories are discovered — the manual post-scaffold step the `gen core-package ui` generator already documents.
21 lines
540 B
TypeScript
21 lines
540 B
TypeScript
import type { StorybookConfig } from "@storybook/react-vite";
|
|
|
|
const config: StorybookConfig = {
|
|
framework: "@storybook/react-vite",
|
|
stories: ["../../../packages/core-ui/src/**/*.stories.@(ts|tsx)"],
|
|
addons: ["@storybook/addon-essentials"],
|
|
docs: {
|
|
autodocs: "tag",
|
|
},
|
|
async viteFinal(config) {
|
|
const { mergeConfig } = await import("vite");
|
|
const tailwindPlugin = await import("@tailwindcss/vite");
|
|
|
|
return mergeConfig(config, {
|
|
plugins: [tailwindPlugin.default()],
|
|
});
|
|
},
|
|
};
|
|
|
|
export default config;
|