fix(nuxi): add nuxt3 to dev deps in upgrade command (#2143)

This commit is contained in:
Daniel Roe 2021-11-24 20:13:12 +00:00 committed by GitHub
parent 955fa364fa
commit f3082ca601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ export default defineNuxtCommand({
execSync(`${packageManager} install`, { stdio: 'inherit' })
} else {
consola.info('Upgrading nuxt...')
execSync(`${packageManager} ${packageManager === 'yarn' ? 'add' : 'install'} nuxt3@latest`, { stdio: 'inherit' })
execSync(`${packageManager} ${packageManager === 'yarn' ? 'add' : 'install'} -D nuxt3@latest`, { stdio: 'inherit' })
}
const upgradedVersion = await getNuxtVersion(rootDir)