@vzn/vx 0.0.540 → 0.0.541
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/src/cli/select.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vzn/vx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.541",
|
|
4
4
|
"description": "The fastest task runner and build cache for JavaScript monorepos.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"node": ">=18"
|
|
22
22
|
},
|
|
23
23
|
"optionalDependencies": {
|
|
24
|
-
"@vzn/vx-linux-x64": "0.0.
|
|
25
|
-
"@vzn/vx-linux-arm64": "0.0.
|
|
26
|
-
"@vzn/vx-darwin-x64": "0.0.
|
|
27
|
-
"@vzn/vx-darwin-arm64": "0.0.
|
|
24
|
+
"@vzn/vx-linux-x64": "0.0.541",
|
|
25
|
+
"@vzn/vx-linux-arm64": "0.0.541",
|
|
26
|
+
"@vzn/vx-darwin-x64": "0.0.541",
|
|
27
|
+
"@vzn/vx-darwin-arm64": "0.0.541"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@anthropic-ai/sandbox-runtime": "^0.0.76"
|
package/src/cli/select.ts
CHANGED
|
@@ -356,6 +356,14 @@ export async function resolveFilters(
|
|
|
356
356
|
if (unmatched.length === 0 && emptyWalks.length > 0) {
|
|
357
357
|
return { error: `no projects selected: ${emptyWalks.join('; ')}` }
|
|
358
358
|
}
|
|
359
|
+
// Every pattern matched and an exclusion took them all back: "no
|
|
360
|
+
// projects matched filter(s): one, !one" read as a typo of `one`.
|
|
361
|
+
const negations = parsed.filter((f) => f.negate).map((f) => f.raw)
|
|
362
|
+
if (unmatched.length === 0 && negations.length > 0) {
|
|
363
|
+
return {
|
|
364
|
+
error: `no projects selected: ${negations.join(', ')} excluded every project the other filters matched`,
|
|
365
|
+
}
|
|
366
|
+
}
|
|
359
367
|
// One line, not a warning per pattern and then an error saying the same:
|
|
360
368
|
// the patterns are in the error, and the nearest project name is the
|
|
361
369
|
// hint a typo needs.
|