Skip to content

Feature Request: Add a prune command for monorepo deployments #3507

Description

@shekharsikku

Description

Vite+ provides task orchestration capabilities for managing tasks across monorepo workspaces. However, when deploying an individual application or package from a monorepo, we often need to include only the target package and its required internal workspace dependencies.

Currently, this can require manually figuring out which packages are needed and preparing a minimal deployment workspace.

Tools like Turborepo solve this problem with turbo prune.

Describe the solution you'd like

It would be great if Vite+ provided a similar pruning capability.

For example:

vp prune web --out-dir=out

The command would:

  • Generate a minimal workspace containing the specified package.
  • Include only its required internal workspace dependencies.
  • Preserve the necessary package manifests and workspace configuration.
  • Generate a pruned lockfile containing only the required dependencies.
  • Support deployment workflows, including Docker-based builds.

Why is this useful?

  • Smaller Docker build contexts.
  • Faster CI/CD pipelines.
  • Reduced dependency installation time.
  • Easier deployment of individual applications from large monorepos.
  • Better integration with containerized deployment workflows.

Suggested solution

Reference

Turborepo's implementation: https://turborepo.dev/docs/reference/prune

A similar feature in Vite+ would make its monorepo tooling more complete.

Alternative

No response

Additional context

No response

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. voidzero-bot commented on Nov 20, 2026

    @voidzero-bot
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