Skip to content

feat!: enable passing JSON string to the tsconfig configuration option#688

Merged
mrazauskas merged 14 commits intomainfrom
enable-tsconfig-json-string
Feb 11, 2026
Merged

feat!: enable passing JSON string to the tsconfig configuration option#688
mrazauskas merged 14 commits intomainfrom
enable-tsconfig-json-string

Conversation

@mrazauskas
Copy link
Member

@mrazauskas mrazauskas commented Feb 10, 2026

Close #683

This PR enables passing JSON string to the tsconfig configuration option.

Inline TSConfig can be provided using command line:

tstyche --tsconfig '{"extends":"./tsconfig.json","compilerOptions":{"lib":["es2020"]},"include":["**/*"]}'

or using the config file:

{
  "tsconfig": "{\"extends\":\"./tsconfig.json\",\"compilerOptions\":{\"lib\":[\"es2020\"]},\"include\":[\"**/*\"]}"
}

The implementation creates a synthetic TSConfig file at the root of a project. Unlike #683, this way all fields of TSConfig are respected, paths resolved predictably and compilerOptions are passed through validation logic.


This API is intended to be used programmatically (see #686).

@codacy-production
Copy link

codacy-production bot commented Feb 10, 2026

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.01% (target: -1.00%) 100.00% (target: 85.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (4c1483e) 7392 7291 98.63%
Head commit (f2b205b) 7441 (+49) 7340 (+49) 98.64% (+0.01%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#688) 92 92 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

@mrazauskas mrazauskas changed the title feat: enable passing JSON string to the tsconfig configuration option feat!: enable passing JSON string to the tsconfig configuration option Feb 10, 2026
@mrazauskas mrazauskas marked this pull request as ready for review February 11, 2026 10:19
@mrazauskas mrazauskas enabled auto-merge (squash) February 11, 2026 10:20
@mrazauskas mrazauskas merged commit 7897216 into main Feb 11, 2026
46 of 52 checks passed
@mrazauskas mrazauskas deleted the enable-tsconfig-json-string branch February 11, 2026 12:16
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.

1 participant