@vzn/vx 0.0.328 → 0.0.329

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vzn/vx",
3
- "version": "0.0.328",
3
+ "version": "0.0.329",
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.328",
25
- "@vzn/vx-linux-arm64": "0.0.328",
26
- "@vzn/vx-darwin-x64": "0.0.328",
27
- "@vzn/vx-darwin-arm64": "0.0.328"
24
+ "@vzn/vx-linux-x64": "0.0.329",
25
+ "@vzn/vx-linux-arm64": "0.0.329",
26
+ "@vzn/vx-darwin-x64": "0.0.329",
27
+ "@vzn/vx-darwin-arm64": "0.0.329"
28
28
  },
29
29
  "dependencies": {
30
30
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
@@ -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
  /**