Skip to content

Commit 14ed3a5

Browse files
authored
Update .changeset/fix-monorepo-import-path.md
1 parent 93a7c62 commit 14ed3a5

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

.changeset/fix-monorepo-import-path.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,3 @@
33
---
44

55
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

Comments
 (0)