The stories glob covered only packages/core-ui, so any feature story a component-must-have-story fix produces would be invisible in Storybook and skipped by pnpm test:stories. Glob every package's src tree and declare the workspace dep on @repo/core-ui (the only storied package today) so turbo's build cache invalidates when its stories change. Verified: storybook build succeeds, 18 stories in index.json. (S7) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
21 lines
698 B
TypeScript
21 lines
698 B
TypeScript
import type { StorybookConfig } from "@storybook/react-vite";
|
|
|
|
const config: StorybookConfig = {
|
|
framework: "@storybook/react-vite",
|
|
// ALL workspace stories: core-ui atoms/molecules AND every feature
|
|
// package's src/ui/components — a story that isn't globbed here is
|
|
// invisible in Storybook and skipped by pnpm test:stories.
|
|
stories: ["../../../packages/*/src/**/*.stories.@(ts|tsx)"],
|
|
addons: ["@storybook/addon-essentials"],
|
|
docs: {
|
|
autodocs: "tag",
|
|
},
|
|
async viteFinal(config) {
|
|
const tailwindPlugin = await import("@tailwindcss/vite");
|
|
config.plugins = [tailwindPlugin.default(), ...(config.plugins || [])];
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default config;
|