@vzn/vx 0.0.628 → 0.0.630

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.628",
3
+ "version": "0.0.630",
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.628",
25
- "@vzn/vx-linux-arm64": "0.0.628",
26
- "@vzn/vx-darwin-x64": "0.0.628",
27
- "@vzn/vx-darwin-arm64": "0.0.628"
24
+ "@vzn/vx-linux-x64": "0.0.630",
25
+ "@vzn/vx-linux-arm64": "0.0.630",
26
+ "@vzn/vx-darwin-x64": "0.0.630",
27
+ "@vzn/vx-darwin-arm64": "0.0.630"
28
28
  },
29
29
  "dependencies": {
30
30
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
@@ -362,6 +362,10 @@ export async function prepareRun(options: RunOptions, log: Logger): Promise<Prep
362
362
  }
363
363
  const { projects, configured: projectsWithConfigs } = loaded
364
364
  mark('load configs')
365
+ // A config the load left out may declare what nothing loaded does. Asked by
366
+ // name, never by count: a config-less project counts as loaded, so a
367
+ // scope holding one hid an unloaded declarer (X-129, X-182).
368
+ const partialLoad = projectsWithConfigs.some((m) => !projects.has(m.name))
365
369
 
366
370
  // Boundary geometry considers every workspace project, loaded or not,
367
371
  // config or not: `--affected` gives a changed path to the deepest project
@@ -385,12 +389,7 @@ export async function prepareRun(options: RunOptions, log: Logger): Promise<Prep
385
389
  // it, and the run said no project did (C-3). Only what is still
386
390
  // unjudged pays for the rest of the workspace.
387
391
  unresolvedTasks = undeclaredIn(unresolvedTasks, projects)
388
- // By name, not by count: a config-less project in the scope counts as
389
- // loaded, and a changed one hid an unloaded `test` declarer (X-129).
390
- if (
391
- unresolvedTasks.some((t) => !t.includes('#')) &&
392
- projectsWithConfigs.some((m) => !projects.has(m.name))
393
- ) {
392
+ if (partialLoad && unresolvedTasks.some((t) => !t.includes('#'))) {
394
393
  unresolvedTasks = await declaredNowhere(unresolvedTasks, () =>
395
394
  loadProjects({ ...loadArgs, seeds: 'all', closure: false, staged: projects }),
396
395
  )
@@ -407,7 +406,7 @@ export async function prepareRun(options: RunOptions, log: Logger): Promise<Prep
407
406
  )
408
407
  if (options.projects !== undefined && options.selectedByDiff !== true && bare.length > 0) {
409
408
  let nowhere = undeclaredIn(bare, projects)
410
- if (nowhere.length > 0 && projectsWithConfigs.some((m) => !projects.has(m.name))) {
409
+ if (nowhere.length > 0 && partialLoad) {
411
410
  nowhere = await declaredNowhere(nowhere, () =>
412
411
  loadProjects({ ...loadArgs, seeds: 'all', closure: false, staged: projects }),
413
412
  )
@@ -527,7 +526,7 @@ export async function prepareRun(options: RunOptions, log: Logger): Promise<Prep
527
526
  requested: req,
528
527
  workspaceRoot,
529
528
  rules: workspaceConfig?.rules,
530
- ...(projects.size < projectsWithConfigs.length
529
+ ...(partialLoad
531
530
  ? { undeclaredDeps: (id: string, name: string) => void unproven.push([id, name]) }
532
531
  : {}),
533
532
  })
@@ -588,7 +587,7 @@ export async function prepareRun(options: RunOptions, log: Logger): Promise<Prep
588
587
  for (const p of projects.values())
589
588
  for (const t of Object.keys(p.config.tasks ?? {})) declared.add(t)
590
589
  let unknown = excludeNames.filter((n) => !declared.has(n))
591
- if (unknown.length > 0 && projects.size < projectsWithConfigs.length) {
590
+ if (unknown.length > 0 && partialLoad) {
592
591
  unknown = await declaredNowhere(unknown, () =>
593
592
  loadProjects({ ...loadArgs, seeds: 'all', closure: false, staged: projects }),
594
593
  )