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(misc): support workspaces using a root tsconfig.json instead of tsconfig.base.json #9195

Merged
merged 2 commits into from Mar 9, 2022

Conversation

leosvelperez
Copy link
Member

@leosvelperez leosvelperez commented Mar 4, 2022

Current Behavior

There are several places within Nx where it doesn't fall back to locate a root tsconfig.json if the expected tsconfig.base.json doesn't exist.

Most of the time this should be fine since Nx workspaces by default use tsconfig.base.json, but there are still some scenarios where a tsconfig.json might still be used (e.g. devs decide to use it, or Angular CLI workspaces migrated using a package like make-angular-cli-faster or Angular CLI workspaces migrated using the --preserve-angular-cli-layout flag).

Expected Behavior

The functionality within Nx should look for a root tsconfig.json if the tsconfig.base.json file doesn't exist. By default, tsconfig.base.json should still be used for everything and it's still the recommended file to use, but a fallback should be in place.

Related Issue(s)

Fixes #

@leosvelperez leosvelperez self-assigned this Mar 4, 2022
@nx-cloud
Copy link

nx-cloud bot commented Mar 4, 2022

☁️ Nx Cloud Report

CI ran the following commands for commit 1454a02. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 7 targets

Sent with 💌 from NxCloud.

@vercel
Copy link

vercel bot commented Mar 4, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/nrwl/nx-dev/63Hzqex68s9NBcBNLFGDHGMhTsdy
✅ Preview: Canceled

[Deployment for 1454a02 canceled]

packages/workspace/src/utilities/typescript.ts Outdated Show resolved Hide resolved
packages/workspace/src/utilities/typescript.ts Outdated Show resolved Hide resolved
packages/workspace/src/utilities/typescript.ts Outdated Show resolved Hide resolved
packages/workspace/src/utilities/typescript.ts Outdated Show resolved Hide resolved
@FrozenPandaz FrozenPandaz merged commit acc29e9 into nrwl:master Mar 9, 2022
@leosvelperez leosvelperez deleted the misc/root-tsconfig branch March 21, 2022 12:20
@github-actions
Copy link

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 Mar 19, 2023
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.

None yet

2 participants