Skip to content

Adapt clever-tools update command based on the package manager #996

@maximepvrt

Description

@maximepvrt

Currently, when a new version of clever-tools is available, the message shown is:

Update available 3.13.1 → 4.4.0
Run npm i -g clever-tools to update

This assumes the user is using npm, while some users may be using pnpm, yarn, brew, etc.

Proposal:

  • Detect the package manager in use or display multiple commands for different environments:

    • npm: npm i -g clever-tools
    • pnpm: pnpm add -g clever-tools
    • yarn: yarn global add clever-tools
    • brew: brew upgrade clever-tools
  • Dynamically show the appropriate update command based on the user’s environment.

Expected benefits:

  • Reduce update errors.
  • Provide a smoother experience for all users.
  • Ensure consistent support for different package managers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions