@vzn/vx 0.0.328 → 0.0.330
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/workspace/filter.ts +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vzn/vx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.330",
|
|
4
4
|
"description": "A fast, correct 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.330",
|
|
25
|
+
"@vzn/vx-linux-arm64": "0.0.330",
|
|
26
|
+
"@vzn/vx-darwin-x64": "0.0.330",
|
|
27
|
+
"@vzn/vx-darwin-arm64": "0.0.330"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@anthropic-ai/sandbox-runtime": "^0.0.76"
|
package/src/workspace/filter.ts
CHANGED
|
@@ -239,7 +239,15 @@ function matchSelector(filter: ParsedFilter, projects: ProjectMeta[]): string[]
|
|
|
239
239
|
for (const p of projects) {
|
|
240
240
|
if (re.test(p.name)) out.push(p.name)
|
|
241
241
|
}
|
|
242
|
-
return out
|
|
242
|
+
if (out.length > 0 || filter.matcher.includes('/')) return out
|
|
243
|
+
// pnpm's rule: the scope may be left out (`--filter core` is
|
|
244
|
+
// `@babel/core`), an exact name only when one package carries it. Nx
|
|
245
|
+
// names `@nx-example/cart` `cart`, and `-p cart` matched nothing.
|
|
246
|
+
for (const p of projects) {
|
|
247
|
+
const slash = p.name.indexOf('/')
|
|
248
|
+
if (p.name.startsWith('@') && re.test(p.name.slice(slash + 1))) out.push(p.name)
|
|
249
|
+
}
|
|
250
|
+
return filter.matcher.includes('*') || out.length === 1 ? out : []
|
|
243
251
|
}
|
|
244
252
|
|
|
245
253
|
/**
|