GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Forward various commands using `vp pm` · Issue #1038 · voidzero-dev/vite-plus

Forward various commands using vp pm #1038

New issue
Copy link
New issue
Copy link
Closed
Feature
Closed
Forward various commands using vp pm#1038
Feature
Copy link
Assignees
cpojer

Description

@thinceller
thinceller
opened on Mar 19, 2026
Issue body actions

Description

I am looking to introduce Vite+ into an existing project that uses pnpm. However, in our project, we perform a minimal dependency resolution during the container build using pnpm deploy. When I try to execute the pnpm deploy command via vp pm, I get the error: Command 'deploy' not found.

If the vp pm command could forward all commands to the package manager, it would make the transition to Vite+ much smoother.

Suggested solution

The vp pm command should forward all subcommands to the package manager.

Alternative

In my use case, being able to run the vp pm deploy command would allow for a smooth transition to Vite+.

Additional context

  • https://pnpm.io/cli/deploy

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.
Reacted by Ray and Rúben Ferreira

Activity

  1. thinceller
    added the
    Feature
    issue type on Mar 19, 2026
  2. fengmk2
    assigned
    cpojer
    on Mar 20, 2026
  3. cpojer commented on Mar 20, 2026

    @cpojer
    cpojer
    on Mar 20, 2026
    Member
    More actions

    We don't support every single package manager command as we aim to provide a common interface across all package managers. deploy is implemented by some, but not by all.

    If you rely on pnpm's deploy command, I suggest defining a deploy script that does pnpm deploy. Then you can use vp run deploy.

  4. cpojer
    closed this as completedon Mar 20, 2026
  5. thinceller commented on Mar 20, 2026

    @thinceller
    thinceller
    on Mar 20, 2026
    Author
    More actions

    If you rely on pnpm's deploy command, I suggest defining a deploy script that does pnpm deploy. Then you can use vp run deploy.

    This workaround seems like it will work well.
    Thank you for the response.

  6. thinceller commented on Mar 21, 2026

    @thinceller
    thinceller
    on Mar 21, 2026
    Author
    More actions

    @cpojer By the way, the documentation for the vp pm command states the following:

    vite-plus/docs/guide/install.md

    Line 122 in d62e5d9

    - `vp pm <command>` forwards directly to the resolved package manager

    As you explained, vp pm provides a common interface that works across multiple package managers rather than forwarding commands directly. In fact, the "forwards directly" wording is part of what led me to expect that vp pm deploy would work.

    Would it be worth updating the documentation to more accurately describe what vp pm does?

  7. cpojer commented on Mar 23, 2026

    @cpojer
    cpojer
    on Mar 23, 2026
    Member
    More actions

    Yes that is a good point and we might be repeating this incorrectly in a few places across the repo. Do you wanna send a PR?

  8. GoodbyeNJN commented on May 16, 2026

    @GoodbyeNJN
    GoodbyeNJN
    on May 16, 2026
    More actions

    @cpojer I firmly believe this feature is necessary.

    We don't support every single package manager command as we aim to provide a common interface across all package managers. deploy is implemented by some, but not by all.

    But in fact, version v0.1.21 introduced a dedicated vp pm plugin subcommand specifically for yarn, which actually contradicts what you said about "provide a common interface across all package managers." Since a special case has already been created for yarn, should special cases also be created for npm x, pnpm y, and bun z? Instead of creating special cases for various possible user needs in the future, it's better to directly support transparent forwarding.

    So I propose:

    • For the command vp pm <cmd> [options], first check if cmd is a known command
    • If so, then process according to the current logic
    • If not, then transparently forward cmd and options to the package manager under the hood, whether cmd and options are valid should be confirmed by the user themselves
  9. fengmk2 commented on May 18, 2026

    @fengmk2
    fengmk2
    on May 18, 2026
    Member
    More actions

    We don't support every single package manager command as we aim to provide a common interface across all package managers.

    @jong-kyung vp pm plugin broke this rule, we need to revert #1540

    Reacted by JongKyung Lee
  10. jong-kyung commented on May 19, 2026

    @jong-kyung
    jong-kyung
    on May 19, 2026
    Collaborator
    More actions

    @fengmk2 Thanks for the clarification. I’ll open a revert PR for #1540.

  11. fengmk2
    added 2 commits that reference this issue on May 19, 2026

    revert: remove vp pm plugin command (#1623)

    e80e241

    release: v0.1.22 (#1637)

    12368da
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @cpojer
    cpojer

Labels

No labels
No labels

Type

Feature

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.