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

feat: Make TypescriptConfig mutable, add TypescriptConfigPresets #3535

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

giseburt
Copy link
Contributor

Added ability to control tsconfig merges right in typescript-config.ts, introducing the ability to alter the tsconfig intelligently and without escape hatches.

Removed the tsconfig merging from typescript.ts and have it use the now-native merging ability, realinging the separation of concerns there.

Adjusted tests to match the new functionality. Only one snapshot needed changed, all test pass.

Fixes #3448


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-commenter
Copy link

codecov-commenter commented Apr 21, 2024

Codecov Report

Attention: Patch coverage is 98.46547% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 96.37%. Comparing base (ad20d2c) to head (5418c52).
Report is 19 commits behind head on main.

Files Patch % Lines
src/javascript/typescript-config.ts 92.75% 5 Missing ⚠️
src/javascript/typescript-config-presets.ts 99.36% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3535      +/-   ##
==========================================
+ Coverage   96.34%   96.37%   +0.02%     
==========================================
  Files         192      193       +1     
  Lines       37696    38016     +320     
  Branches     3524     2676     -848     
==========================================
+ Hits        36320    36637     +317     
- Misses       1376     1379       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…mpilerOptionsMergeMethod`

Added ability to control tsconfig merges right in `typescript-config.ts`, introducing the ability to alter the tsconfig intelligently and without escape hatches.

Removed the tsconfig merging from `typescript.ts` and have it use the now-native merging ability, realinging the separation of concerns there.

Adjusted tests to match the new functionality. Only one snapshot needed changed, all test pass.
@giseburt giseburt changed the title Move TSConfig merging to typescript-config.ts, add TypeScriptSetCompilerOptionsMergeMethod feat: Make TypescriptConfig mutable, add TypescriptConfigPresets Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RFC: Target-project based control of TypescriptConfig from TypeScriptProject
2 participants