Skip to content

Add --cwd to vp run for a smoother migration from bun #1587

@jaenyf

Description

@jaenyf

Description

When converting bun run --cwd folder/package someTask to vp run @app/package#someTask relative paths inside folder/package/package.json are incorrectly resolved from the root location instead of the current package.json file.

A simple workaround for this is to add a --cwd parameter to the vp run command to mimic what bun run --cwd does.

Suggested solution

Allow specifying a cwd when calling vp run

Alternative

No response

Additional context

vp --version

VITE+ - The Unified Toolchain for the Web

vp v0.1.21

Local vite-plus:
  vite-plus  Not found

Tools:
  vite             Not found
  rolldown         Not found
  vitest           Not found
  oxfmt            Not found
  oxlint           Not found
  oxlint-tsgolint  Not found
  tsdown           Not found

Environment:
  Package manager  bun v1.3.14
  Node.js          v24.15.0

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.

Metadata

Metadata

Assignees

No one assigned

    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