chore(storybook): upgrade to v10.3.5#276
Conversation
- storybook, @storybook/react, @storybook/react-vite, @storybook/addon-docs → v10.3.5 - Remove consolidated packages: addon-essentials, addon-interactions, addon-links, blocks (merged into storybook core in v9+) - Remove @storybook/manager-api, @storybook/theming, @storybook/test (now accessible as storybook/manager-api, storybook/theming, storybook/test) - Update pnpm.onlyBuiltDependencies to allow esbuild build scripts
- main.ts: use staticDirs instead of CLI --static-dir flag add providerImportSource for pnpm MDX shim path resolution update addons array (essentials/interactions/links now in core) - manager.ts: update imports from @storybook/* to storybook/* subpaths (manager-api and theming consolidated into storybook package)
In v10, Meta and other block components moved from @storybook/addon-docs root export to @storybook/addon-docs/blocks subpath.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
Changes
Storybook를 v8.4.x에서 v10.3.5로 업그레이드합니다.
패키지 변경
storybook,@storybook/react,@storybook/react-vite,@storybook/addon-docs→ v10.3.5@storybook/addon-essentials,addon-interactions,addon-links,@storybook/blocks@storybook/manager-api,@storybook/theming,@storybook/teststorybook/manager-api,storybook/theming서브패스로 접근 가능설정 변경
.storybook/main.ts: CLI--static-dir→staticDirs설정, pnpm MDX shim 경로 문제 해결 (providerImportSource).storybook/manager.ts:@storybook/*→storybook/*서브패스 import 변경docs/*.mdx:@storybook/addon-docs→@storybook/addon-docs/blocksimport 변경pnpm 설정
pnpm.onlyBuiltDependencies: [esbuild]로 빌드 스크립트 명시적 허용Visuals
Storybook v10.3.5 빌드 성공 확인:
Checklist
Additional Discussion Points
pnpm hoisting: Storybook v10 + pnpm 환경에서 일부 패키지가 중첩
node_modules에서 찾아지지 않는 문제가 있었습니다. 필요한 패키지들(@storybook/*,@radix-ui/*,@vanilla-extract/*,react등)의 hoisting 설정이 현재node_modules에 적용되어 있습니다. 새 환경에서 문제 발생 시.npmrc에public-hoist-pattern추가가 필요할 수 있습니다.