-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path.npmrc
More file actions
18 lines (18 loc) · 972 Bytes
/
Copy path.npmrc
File metadata and controls
18 lines (18 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Strict pnpm — declared deps only, NO shamefully-hoist.
#
# One narrow carve-out: hoist the entire @storybook/* namespace. Leaf
# component workspaces consume Storybook from a "framework-user"
# perspective (matching the ESLint override for **/docs/**):
#
# - every *.stories.tsx imports `Meta` / `StoryObj` / `StoryFn` types
# from `@storybook/react-vite`, which re-exports from `@storybook/react`
# - every *.readme.mdx imports `Meta` / `Markdown` from
# `@storybook/addon-docs/blocks`
#
# Adding ~15 @storybook/* packages as devDeps on 80+ leaf workspaces would
# be pure noise — the storybook workspace is the rightful owner of these
# deps. This pattern is dramatically narrower than `shamefully-hoist=true`
# (which would hoist 1000+ packages), and avoids the v8-era bug where the
# stories glob picked up `@storybook/react`'s bundled `template/cli/js/*`
# (fixed structurally by the Storybook 9 upgrade in this branch).
public-hoist-pattern[]=@storybook/*