You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .changeset/fix-monorepo-import-path.md
-12Lines changed: 0 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,3 @@
3
3
---
4
4
5
5
Fix `preview-stories` failing to find stories in monorepo packages directories.
6
-
7
-
In a monorepo like:
8
-
9
-
```
10
-
my-monorepo/
11
-
apps/storybook/ ← Storybook runs here
12
-
packages/design-system/ ← stories live here
13
-
```
14
-
15
-
The tool builds `./../../packages/design-system/Button.stories.tsx` but `index.json` stores `../../packages/design-system/Button.stories.tsx` (no `./`). The strict `===` fails silently.
16
-
17
-
Path normalization now uses `normalizeStoryPath` from `storybook/internal/common` to stay consistent with how Storybook core canonicalizes `importPath`.
0 commit comments