diff --git a/src/commands/upgrade.ts b/src/commands/upgrade.ts index f1a9c961..228908d7 100644 --- a/src/commands/upgrade.ts +++ b/src/commands/upgrade.ts @@ -61,7 +61,7 @@ export default defineCommand({ .trim() consola.info('Package Manager:', packageManager, packageManagerVersion) - let nuxtDirsClean = false + let nuxtDirsCleaned = false for (const packageName of [ 'nuxt', @@ -104,9 +104,9 @@ export default defineCommand({ } // Cleanup after upgrade - if (!nuxtDirsClean) { + if (!nuxtDirsCleaned) { await cleanupNuxtDirs(cwd) - nuxtDirsClean = true + nuxtDirsCleaned = true } // Install latest version