Skip to content

Skip packages which are up to date in vp update -g #1477

Description

@liangmiQwQ

Description

If we run vp update -g, the current Vite+ will reinstall all the installed packages, no matter whether it is up to date, which makes update process slow.

Suggested solution

We can follow other pm's behavior like pnpm / npm, which needs Vite+ compares user's installed version with the latest version on registry, and only reinstall ones which is needed to update. We can't delegate it to npm install -g like #1476 as we use different prefixes for different packages.

Since vp can record the Node version used to install the package, whether to reinstall when node version changes may become a topic need to discuss.

Alternative

No response

Additional context

Maybe it is partially related #1476, implementing this after finishing #1476 can make work much simpler

Validations

  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Fields

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions