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 — Support pnpm catalog · Issue #1835 · voidzero-dev/vite-plus

Support pnpm catalog #1835

New issue
Copy link
New issue
Copy link
Open
Feature
Open
Support pnpm catalog#1835
Feature
Copy link
Labels
enhancementNew feature or request

Description

@tobynguyen27
tobynguyen27
opened on Jun 15, 2026
Issue body actions

Description

In current Vite+, when running vp add vue with pnpm catalogs configured in pnpm-workspace.yaml, it totally ignores the catalog and add the package with it version directly in package.json.

Since pnpm catalogs feature provide a lot of benefit for packages management (Anthony Fu wrote a blog about it), it will be great if VIte+ does support it.

Suggested solution

  • This feature can be toggle by a config in vite.config.ts: pnpm.catalog: boolean or an env var like VP_CATALOG=boolean.

  • When running vp add and Vite+ detects a workspace that use pnpm catalog: instead of adding packages with pinned versions, it writes catalog: references into package.json and updates the workspace catalog:

# Given pnpm-workspace.yaml with:
#   catalogs:
#     prod:
#       react: ^18.3.0

vp add react
# → detects react in "prod" catalog
# → writes "react": "catalog:prod" to package.json
# → runs vp install

vp add lodash
# → lodash not in any catalog
# → prompts to select a catalog (or skip)
# → fetches latest version, updates pnpm-workspace.yaml
# → writes "lodash": "catalog:prod" to package.json
# → runs vp install

Alternative

No response

Additional context

This feature is inspired by ni

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.

Activity

  1. tobynguyen27
    added the
    Feature
    issue type on Jun 15, 2026
  2. tobynguyen27
    added
    pending triage
    on Jun 15, 2026
  3. jong-kyung commented on Jun 15, 2026

    @jong-kyung
    jong-kyung
    on Jun 15, 2026
    Collaborator
    More actions

    Thanks for the request!

    Vite+ already forwards pnpm catalog flags:

    • vp add react --save-catalog
    • vp add react --save-catalog-name prod

    And when catalogMode: prefer is configured, plain vp add follows pnpm’s native behavior for the default catalog.

  4. tobynguyen27 commented on Jun 15, 2026

    @tobynguyen27
    tobynguyen27
    on Jun 15, 2026
    ContributorAuthor
    More actions

    Thanks for the request!

    Vite+ already forwards pnpm catalog flags:

    * `vp add react --save-catalog`
    
    * `vp add react --save-catalog-name prod`
    

    And when catalogMode: prefer is configured, plain vp add follows pnpm’s native behavior for the default catalog.

    It'd be nice if we added an interact TUI:

    When execute vp add react. It will show a prompt that asks user which catalog should this package added to or creating a new catalog (this TUI is only for workspace which is using name catalogs)

  5. jong-kyung
    added
    enhancementNew feature or request
    and removed
    pending triage
    on Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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.