Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
```shell renderer="common" language="js" packageManager="npm"
npx storybook automigrate csf-factories -c apps/admin/.storybook
npx storybook automigrate csf-factories -c apps/website/.storybook
```

```shell renderer="common" language="js" packageManager="pnpm"
pnpm dlx storybook automigrate csf-factories -c apps/admin/.storybook
pnpm dlx storybook automigrate csf-factories -c apps/website/.storybook
```

```shell renderer="common" language="js" packageManager="yarn"
yarn dlx storybook automigrate csf-factories -c apps/admin/.storybook
yarn dlx storybook automigrate csf-factories -c apps/website/.storybook
```
6 changes: 6 additions & 0 deletions docs/api/csf/csf-next.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,12 @@ You can automatically upgrade all of your project's stories from CSF 3 to CSF Ne

<CodeSnippets path="csf-factories-automigrate.md" />

#### Monorepos

If your project has multiple Storybook configurations, run the command with the `-c` flag pointing to each config directory:

<CodeSnippets path="csf-factories-automigrate-with-config-directory.md" />

It will run through each of the manual upgrade steps below on all of your story files.

<details>
Expand Down
Loading