Skip to content

feat: allow overriding rootDir option from command line#668

Merged
mrazauskas merged 3 commits intomainfrom
allow-overriding-rootDir
Jan 28, 2026
Merged

feat: allow overriding rootDir option from command line#668
mrazauskas merged 3 commits intomainfrom
allow-overriding-rootDir

Conversation

@mrazauskas
Copy link
Member

This PR adds the --rootDir command line option that allows overriding the rootDir option from command line.

It is useful when running TSTyche programmatically via tstyche/tag:

import tstyche from "tstyche/tag";
import { getFixtureUrl } from "./getFixtureUrl.js";

const fixtureUrl = getFixtureUrl(import.meta);

await tstyche`isString --quiet --rootPath ${fixtureUrl}`;

@codacy-production
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00% (target: -1.00%) 100.00% (target: 85.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (e258aad) 7304 7207 98.67%
Head commit (d528f5e) 7314 (+10) 7217 (+10) 98.67% (+0.00%)

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 (#668) 17 17 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 merged commit c72d498 into main Jan 28, 2026
36 of 38 checks passed
@mrazauskas mrazauskas deleted the allow-overriding-rootDir branch January 28, 2026 12:37
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