Skip to content

Bug: vp pack does not traverse upward to read pack configuration from vite.config.ts #942

@kangkangqvq

Description

@kangkangqvq

Describe the bug

When using tsdown, if tsdown.config.ts is configured in the project root, running the tsdown command inside a subpackage will traverse upward and read the configuration from the root directory.

However, when using vp pack in vite-plus, the command does not traverse parent directories to read configuration defined in vite.config.ts.

It would be helpful if vp pack could support similar behavior: when executed inside a subdirectory (such as a subpackage in a monorepo), it should traverse upward and load configuration from the nearest vite.config.ts, including the pack configuration.

This would make it easier to use vite-plus in monorepo setups where the shared configuration is defined at the repository root.

Reproduction

null

Steps to reproduce

No response

System Info

vp pack

Used Package Manager

pnpm

Logs

Validations

Metadata

Metadata

Labels

No labels
No labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions