Skip to content
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

fix(js): generated tsconfig extends path #28317

Closed
wants to merge 1 commit into from

Conversation

SebastienGllmt
Copy link

Current Behavior

The generated extends path in tsconfig is incorrectly generated, causing the build to succeed even if it does nothing

Expected Behavior

The paths should either both be absolute, or both be relative.

The easiest way to do this was to pass in the relative path into the checkDependencies function (since the tsConfig variable is not accessed anywhere except to calculate generatedTsConfig.extends), but changing dirnameTsConfig to always be absolute would also be okay

Related Issue(s)

Fixes #28316

@SebastienGllmt SebastienGllmt requested a review from a team as a code owner October 6, 2024 11:43
Copy link

vercel bot commented Oct 6, 2024

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Oct 6, 2024 11:46am

Copy link
Member

@leosvelperez leosvelperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @SebastienGllmt! Thanks for the detailed investigation!

Let's revert the current change and normalize the file in the helper correctly. That way, we'll guarantee that every consumer of the helper is correct regardless of the path they provide.

@SebastienGllmt
Copy link
Author

@leosvelperez would you be able to take that on? I'm not sure exactly where you'd like the normalization to take place. You can create your own PR if you want

@leosvelperez
Copy link
Member

Superseded by #29121.

Copy link

github-actions bot commented Dec 5, 2024

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 Dec 5, 2024
@SebastienGllmt SebastienGllmt deleted the patch-1 branch December 5, 2024 09:43
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.

@nx/js:tsc - wrong extends path used when generated temporary tsconfig
2 participants