@vzn/vx 0.0.189 → 0.0.190

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/README.md CHANGED
@@ -77,7 +77,8 @@ The package ships a prebuilt binary for Linux and macOS, x64 and arm64
77
77
 
78
78
  ## Quick start
79
79
 
80
- In any git repo with a `package.json` workspace:
80
+ In a git repo with a `package.json` workspace and no `turbo.json` or
81
+ `nx.json` (those get the one file above):
81
82
 
82
83
  ```sh
83
84
  npx vx init # a vx.config.ts per package, from its scripts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vzn/vx",
3
- "version": "0.0.189",
3
+ "version": "0.0.190",
4
4
  "description": "A fast, correct task runner and build cache for JavaScript monorepos.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -17,10 +17,10 @@
17
17
  "node": ">=18"
18
18
  },
19
19
  "optionalDependencies": {
20
- "@vzn/vx-linux-x64": "0.0.189",
21
- "@vzn/vx-linux-arm64": "0.0.189",
22
- "@vzn/vx-darwin-x64": "0.0.189",
23
- "@vzn/vx-darwin-arm64": "0.0.189"
20
+ "@vzn/vx-linux-x64": "0.0.190",
21
+ "@vzn/vx-linux-arm64": "0.0.190",
22
+ "@vzn/vx-darwin-x64": "0.0.190",
23
+ "@vzn/vx-darwin-arm64": "0.0.190"
24
24
  },
25
25
  "dependencies": {
26
26
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
@@ -472,16 +472,16 @@ export async function loadProjectConfigs(
472
472
  }
473
473
  }
474
474
  await Promise.all(Array.from({ length: Math.min(LOAD_WIDTH, misses.length) }, lane))
475
- const out: ProjectConfig[] = []
475
+ let first: { failed: unknown } | undefined
476
476
  for (const r of results) {
477
- if ('failed' in r) continue
478
- if (r.evaluated !== undefined) evals.push(r.evaluated)
479
- if (r.closure !== undefined) learnedClosures.push(r.closure)
480
- out.push(r.config)
477
+ if ('failed' in r) first ??= r
478
+ else {
479
+ if (r.evaluated !== undefined) evals.push(r.evaluated)
480
+ if (r.closure !== undefined) learnedClosures.push(r.closure)
481
+ }
481
482
  }
482
- const first = results.find((r) => 'failed' in r)
483
- if (first !== undefined) throw (first as { failed: unknown }).failed
484
- return out
483
+ if (first !== undefined) throw first.failed
484
+ return results.map((r) => (r as Loaded).config)
485
485
  } finally {
486
486
  endRound()
487
487
  if (store !== undefined) {