Skip to content

Commit

Permalink
Merge pull request #21919 from jackw/yarn-migration-instructions
Browse files Browse the repository at this point in the history
Docs: Add code snippets for yarn pnp in migration-guide
  • Loading branch information
jonniebigodes authored and shilman committed Apr 12, 2023
1 parent 6e7ce0d commit 2c9301d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ To upgrade your Storybook:
<CodeSnippets
paths={[
'common/storybook-upgrade.npm.js.mdx',
'common/storybook-upgrade.pnpm.js.mdx'
'common/storybook-upgrade.pnpm.js.mdx',
'common/storybook-upgrade.yarn.js.mdx'
]}
/>

Expand All @@ -45,7 +46,8 @@ To add Storybook to a project that isn’t currently using Storybook:
<CodeSnippets
paths={[
'common/init-command.npx.js.mdx',
'common/init-command.pnpm.js.mdx'
'common/init-command.pnpm.js.mdx',
'common/init-command.yarn.js.mdx'
]}
/>

Expand Down
3 changes: 3 additions & 0 deletions docs/snippets/common/init-command.yarn.js.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```shell
yarn dlx storybook@latest init
```
3 changes: 3 additions & 0 deletions docs/snippets/common/storybook-upgrade-prerelease.yarn.js.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```shell
yarn dlx storybook@latest upgrade --prerelease
```
3 changes: 3 additions & 0 deletions docs/snippets/common/storybook-upgrade.yarn.js.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```shell
yarn dlx storybook@latest upgrade
```

0 comments on commit 2c9301d

Please sign in to comment.