Unverified Commit 79f08199 authored by Matthew Heath's avatar Matthew Heath Committed by GitHub

Add yarn berry dependency upgrade example for Next 12 to 13 upgrade documentation. (#43472)

This PR adds an example `yarn up` command to bump the relevant dependencies when using yarn berry for the Next 12 to Next 13 upgrade. One thing to possibly note is that `yarn up` is not scoped to a single workspace like `yarn upgrade` in classic - to get around this when in multiple workspaces, the `-i/--interactive` flag can be passed.

**Update** - can upgrade dependencies in both yarn classic/berry using `yarn add ...@latest`, this may be more straight forward than having two separate commands.

## Documentation / Examples

- [X] Make sure the linting passes by running `pnpm build && pnpm lint`
- [X] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
parent f0625662
...@@ -11,7 +11,7 @@ To update to Next.js version 13, run the following command using your preferred ...@@ -11,7 +11,7 @@ To update to Next.js version 13, run the following command using your preferred
```bash ```bash
npm i next@latest react@latest react-dom@latest eslint-config-next@latest npm i next@latest react@latest react-dom@latest eslint-config-next@latest
# or # or
yarn upgrade next react react-dom eslint-config-next --latest yarn add next@latest react@latest react-dom@latest eslint-config-next@latest
# or # or
pnpm up next react react-dom eslint-config-next --latest pnpm up next react react-dom eslint-config-next --latest
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment