Skip to content

fix(vite): resolve outDir path correctly for nested monorepos #31741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2025

Conversation

Coly010
Copy link
Contributor

@Coly010 Coly010 commented Jun 26, 2025

Current Behavior

The Vite build executor uses naive string manipulation to calculate the output directory path, which fails in nested monorepo structures where the workspace root and project root have different relative paths.

Expected Behavior

The Vite build executor properly resolves the output directory path using Node.js path utilities, ensuring correct path calculation regardless of monorepo nesting structure.

Related Issue(s)

Fixes #31234

Replace naive string manipulation with proper Node.js path resolution
to fix output directory calculation in nested monorepo structures.
@Coly010 Coly010 requested a review from a team as a code owner June 26, 2025 11:55
@Coly010 Coly010 requested a review from leosvelperez June 26, 2025 11:55
@Coly010 Coly010 self-assigned this Jun 26, 2025
Copy link

vercel bot commented Jun 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Jun 26, 2025 0:08am

Copy link

nx-cloud bot commented Jun 26, 2025

View your CI Pipeline Execution ↗ for commit 06b4a58.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 29m 26s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 16s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 4s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 3s View ↗
nx documentation ✅ Succeeded 2m 46s View ↗

☁️ Nx Cloud last updated this comment at 2025-06-26 12:32:12 UTC

@Coly010 Coly010 merged commit eb03e22 into master Jun 26, 2025
8 checks passed
@Coly010 Coly010 deleted the 31234-vite-out-dir branch June 26, 2025 12:36
Copy link

github-actions bot commented Jul 2, 2025

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vite Build Executor: outDir
2 participants