nuxt / cli

⚡️ Nuxt Generation CLI Experience.
https://github.com/nuxt/cli/discussions/3
MIT License
270 stars 65 forks source link

feat(upgrade): allow dedupe instead of deleting lockfile #554

Open OrbisK opened 2 weeks ago

OrbisK commented 2 weeks ago

it should be possible to run a dedupe instead of a lockfile delete with most package managers. The topic came up in the office-hours 2 weeks ago. I thought I would put together here how and whether this could be implemented

Package manager support

npm

npm should have build in dedupe https://docs.npmjs.com/cli/v10/commands/npm-dedupe

pnpm

https://pnpm.io/cli/dedupe

yarn

https://yarnpkg.com/cli/dedupe

bun

planned: https://github.com/oven-sh/bun/issues/8594#issuecomment-2195796840

nuxi upgrade