From 79f081994b924a86f4061a5ba9ffbc95e4d82956 Mon Sep 17 00:00:00 2001 From: Matthew Heath <105067933+matthew-heath@users.noreply.github.com> Date: Tue, 29 Nov 2022 17:46:44 +0000 Subject: [PATCH] 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) --- docs/upgrading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/upgrading.md b/docs/upgrading.md index 7bddae8b3dbf..e5eaff83c0dc 100644 --- a/docs/upgrading.md +++ b/docs/upgrading.md @@ -11,7 +11,7 @@ To update to Next.js version 13, run the following command using your preferred ```bash npm i next@latest react@latest react-dom@latest eslint-config-next@latest # 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 pnpm up next react react-dom eslint-config-next --latest ```