Upgrade to Storybook 9
ProprietaryChains the earlier majors: a project several majors behind needs only this recipe, and upgrades the dependencies once, straight to 9.x, so no intermediate version has to resolve. Upgrade a Storybook 8 project to Storybook 9. Moves imports of the packages that Storybook 9 folded into storybook (@storybook/test, @storybook/theming, @storybook/manager-api, @storybook/preview-api, @storybook/addon-actions, @storybook/addon-viewport, @storybook/addon-highlight, the @storybook/* internals) to their storybook/... paths (MigrateStorybook9Imports), updates the addons list of .storybook/main (MigrateStorybook9Addons), replaces @storybook/addon-essentials with @storybook/addon-docs, removes the packages Storybook 9 no longer publishes, and upgrades storybook and the @storybook/* frameworks, builders and addons that still publish in step with it to 9.x. Not done by this recipe: @storybook/blocks imports to @storybook/addon-docs/blocks, @storybook/react imports to the framework package, @storybook/addon-storysource, @storybook/experimental-addon-test to @storybook/addon-vitest in package.json, {name: ...} entries in addons, and Node.js 20 and Vite 5 minimums; run npx storybook@9 automigrate afterwards.
org. openrewrite. nodejs. migrate. storybook. UpgradeToStorybook9mod run . --recipe= org. openrewrite. nodejs. migrate. storybook. UpgradeToStorybook9Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.