Skip to content

fix(vite): ensure tsconfig file is resolved from workspaceRoot #31987 - #32990

Merged
Coly010 merged 1 commit into
masterfrom
vite/validate-types
Oct 7, 2025
Merged

fix(vite): ensure tsconfig file is resolved from workspaceRoot #31987#32990
Coly010 merged 1 commit into
masterfrom
vite/validate-types

Conversation

@Coly010

@Coly010 Coly010 commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

Current Behavior

When resolving the tsconfig file, project root is always used, regardless of cwd.

Expected Behavior

Prepend workspaceRoot to force absolute path resolution

Related Issue(s)

Fixes #31987

@Coly010
Coly010 requested a review from a team as a code owner October 7, 2025 14:43
@Coly010
Coly010 requested a review from jaysoo October 7, 2025 14:43
@Coly010 Coly010 self-assigned this Oct 7, 2025
@vercel

vercel Bot commented Oct 7, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Oct 7, 2025 3:07pm
@netlify

netlify Bot commented Oct 7, 2025

Copy link
Copy Markdown

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 2731189
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/68e526fa3cf2cf0008e9b8f7
😎 Deploy Preview https://deploy-preview-32990--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud

nx-cloud Bot commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit 2731189

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 27m View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 2m 9s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 8s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 8s View ↗
nx documentation ✅ Succeeded 2m 12s View ↗

☁️ Nx Cloud last updated this comment at 2025-10-07 15:16:28 UTC

@Coly010
Coly010 merged commit ef563d8 into master Oct 7, 2025
20 checks passed
@Coly010
Coly010 deleted the vite/validate-types branch October 7, 2025 17:03
FrozenPandaz pushed a commit that referenced this pull request Oct 8, 2025
…#32990)

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->
When resolving the tsconfig file, project root is always used,
regardless of cwd.
## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
Prepend workspaceRoot to force absolute path resolution

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #31987

(cherry picked from commit ef563d8)
@github-actions

Copy link
Copy Markdown
Contributor

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 Oct 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants