@vzn/vx 0.0.156 → 0.0.158

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.156",
3
+ "version": "0.0.158",
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.156",
21
- "@vzn/vx-linux-arm64": "0.0.156",
22
- "@vzn/vx-darwin-x64": "0.0.156",
23
- "@vzn/vx-darwin-arm64": "0.0.156"
20
+ "@vzn/vx-linux-x64": "0.0.158",
21
+ "@vzn/vx-linux-arm64": "0.0.158",
22
+ "@vzn/vx-darwin-x64": "0.0.158",
23
+ "@vzn/vx-darwin-arm64": "0.0.158"
24
24
  },
25
25
  "dependencies": {
26
26
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
@@ -113,7 +113,14 @@ export function validateWorkspace(config: WorkspaceConfig, configPath: string):
113
113
  const fileClaimants = new Map<string, string>()
114
114
  for (const [i, p] of config.plugins.entries()) {
115
115
  if (p === null || typeof p !== 'object') {
116
- throw new UserError(`${configPath}: \`plugins[${i}]\` must be an object`)
116
+ // Nx's nx.json lists plugins by module name (`'@nx/vite/plugin'`);
117
+ // a vx plugin is the value its package's function returns.
118
+ throw new UserError(
119
+ `${configPath}: \`plugins[${i}]\` must be an object` +
120
+ (typeof p === 'string'
121
+ ? ` — a plugin is what its package's function returns (\`nx()\` from \`@vzn/vx-migrate\`), not a module name`
122
+ : ''),
123
+ )
117
124
  }
118
125
  // The loose schema's shape (unknown-typed hooks) plus the one retired
119
126
  // key this loader still refuses by name.
@@ -716,6 +723,12 @@ const FOREIGN_FIELDS: ReadonlyMap<ReadonlySet<string>, Readonly<Record<string, s
716
723
  cmd: '`exec.command`',
717
724
  script: '`exec.command`',
718
725
  persistent: '`exec.persistent: {}`',
726
+ // Nx's target keys (project.json) and Turbo's `outputLogs`.
727
+ continuous: '`exec.persistent: {}`',
728
+ executor:
729
+ '`exec.command`: vx runs one shell command (`nx()` from `@vzn/vx-migrate` runs an Nx executor as one)',
730
+ options: '`exec.command` (a run-commands `options.command`) and `exec.env`',
731
+ outputLogs: 'the `--output-logs` flag of `vx run`',
719
732
  },
720
733
  ],
721
734
  [EXEC_FIELDS, { cmd: '`command`', script: '`command`' }],
@@ -737,6 +750,9 @@ const FOREIGN_FIELDS: ReadonlyMap<ReadonlySet<string>, Readonly<Record<string, s
737
750
  'a cache plugin in `plugins` (`turboCache()` or `nxCache()` from `@vzn/vx-migrate`)',
738
751
  parallel: '`concurrency`',
739
752
  cacheDirectory: '`cacheDir`',
753
+ defaultBase: 'the base in `--affected=<base>` (default `origin/HEAD`)',
754
+ tasksRunnerOptions: 'a cache plugin in `plugins` (`nxCache()` from `@vzn/vx-migrate`)',
755
+ globalPassThroughEnv: '`exec.env.passThrough` on the tasks it passes to',
740
756
  },
741
757
  ],
742
758
  ])