docs: include package manager options in update script (#31346)

This commit is contained in:
Sam Blowes 2025-03-13 07:07:29 +00:00 committed by Daniel Roe
parent 0685e91d01
commit bd12b3ae68
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -118,10 +118,26 @@ For a complete list of Nuxt 4 codemods, detailed information on each, their sour
You can run all the codemods mentioned in this guide using the following `codemod` recipe:
```bash
::package-managers
```bash [npm]
npx codemod@latest nuxt/4/migration-recipe
```
```bash [yarn]
yarn dlx codemod@latest nuxt/4/migration-recipe
```
```bash [pnpm]
pnpm dlx codemod@latest nuxt/4/migration-recipe
```
```bash [bun]
bun x codemod@latest nuxt/4/migration-recipe
```
::
This command will execute all codemods in sequence, with the option to deselect any that you do not wish to run. Each codemod is also listed below alongside its respective change and can be executed independently.
#### New Directory Structure