fix(storybook): glob all package stories + declare core-ui dep
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>
This commit is contained in:
@@ -2,7 +2,10 @@ import type { StorybookConfig } from "@storybook/react-vite";
|
||||
|
||||
const config: StorybookConfig = {
|
||||
framework: "@storybook/react-vite",
|
||||
stories: ["../../../packages/core-ui/src/**/*.stories.@(ts|tsx)"],
|
||||
// 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",
|
||||
|
||||
Reference in New Issue
Block a user