You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name = "filter_with_zero_results_exits_zero_by_default"
45
+
comment = """
46
+
A `--filter` whose entire result is empty (typo, glob with no match, …) prints the warning and exits 0 — pnpm's default. Previously this errored with `Task "build" not found`.
name = "traversal_collapsed_to_empty_exits_zero_by_default"
52
+
comment = """
53
+
`{.}^...` selects the dependencies of the current package, excluding itself. On a leaf with no workspace deps the expression collapses to zero matches — a legitimate no-op rather than a typo — so the run warns and exits 0.
name = "fail_if_no_match_errors_even_when_other_filters_match"
67
+
comment = """
68
+
Strict mode errors on **any** unmatched filter, even when other filters did match packages — this catches typos in CI scripts that combine an exact name with a glob.
69
+
"""
70
+
steps = [
71
+
[
72
+
"vt",
73
+
"run",
74
+
"--filter",
75
+
"@test/app",
76
+
"--filter",
77
+
"nonexistent",
78
+
"--fail-if-no-match",
79
+
"build",
80
+
],
81
+
]
82
+
83
+
[[e2e]]
84
+
name = "fail_if_no_match_succeeds_when_all_filters_match"
85
+
comment = """
86
+
With `--fail-if-no-match` and only matching filters, the run proceeds normally — strict mode does not change the success path.
Strict mode errors on **any** unmatched filter, even when other filters did match packages — this catches typos in CI scripts that combine an exact name with a glob.
4
+
5
+
## `vt run --filter @test/app --filter nonexistent --fail-if-no-match build`
6
+
7
+
**Exit code:** 1
8
+
9
+
```
10
+
error: No packages matched the filter: nonexistent
A `--filter` whose entire result is empty (typo, glob with no match, …) prints the warning and exits 0 — pnpm's default. Previously this errored with `Task "build" not found`.
`{.}^...` selects the dependencies of the current package, excluding itself. On a leaf with no workspace deps the expression collapses to zero matches — a legitimate no-op rather than a typo — so the run warns and exits 0.
0 commit comments