Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OrbisK opened this issue Nov 4, 2024 · 0 comments · May be fixed by #573
Open

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

OrbisK opened this issue Nov 4, 2024 · 0 comments · May be fixed by #573

Comments

@OrbisK
Copy link
Contributor

OrbisK commented Nov 4, 2024

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: oven-sh/bun#8594 (comment)

nuxi upgrade

  • nuxi upgrade should prompt if user wants to dedupe lockfile, recreate lockfile or just update nuxt
  • nuxi upgrade --dedupe should skip prompt and dedupe lockfile if supported. Should fallback to nuxi upgrade if not supported and warn user
  • --force should have higher priority than --dedupe
  • (--force could inform the user if --dedupe is supported)
@OrbisK OrbisK linked a pull request Nov 20, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant