From c4cdc0537dbec3bab910b89f067e7a6076d110e1 Mon Sep 17 00:00:00 2001 From: Sam Blowes Date: Thu, 13 Mar 2025 07:07:29 +0000 Subject: [PATCH] docs: include package manager options in update script (#31346) --- docs/1.getting-started/12.upgrade.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/1.getting-started/12.upgrade.md b/docs/1.getting-started/12.upgrade.md index ce03c31659..750c255763 100644 --- a/docs/1.getting-started/12.upgrade.md +++ b/docs/1.getting-started/12.upgrade.md @@ -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