@vzn/vx 0.0.543 → 0.0.544

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.543",
3
+ "version": "0.0.544",
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.543",
25
- "@vzn/vx-linux-arm64": "0.0.543",
26
- "@vzn/vx-darwin-x64": "0.0.543",
27
- "@vzn/vx-darwin-arm64": "0.0.543"
24
+ "@vzn/vx-linux-x64": "0.0.544",
25
+ "@vzn/vx-linux-arm64": "0.0.544",
26
+ "@vzn/vx-darwin-x64": "0.0.544",
27
+ "@vzn/vx-darwin-arm64": "0.0.544"
28
28
  },
29
29
  "dependencies": {
30
30
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
@@ -180,6 +180,17 @@ export function validateWorkspace(config: WorkspaceConfig, configPath: string):
180
180
  `task's command runs (see docs/architecture.md § plugin capabilities).`,
181
181
  )
182
182
  }
183
+ // A misspelled hook (`excutor`, `setUp`) was never called and never
184
+ // said: tasks ran here with the plugin's executor unheard (X-19).
185
+ for (const key of Object.keys(plug)) {
186
+ if (key === 'name' || (PLUGIN_HOOKS as readonly string[]).includes(key)) continue
187
+ const near = nearest(key, PLUGIN_HOOKS)
188
+ const hint =
189
+ near === undefined ? ` (hooks: ${PLUGIN_HOOKS.join(', ')})` : ` — did you mean '${near}'?`
190
+ throw new UserError(
191
+ `${configPath}: plugin '${pkg}' declares '${key}', which is no plugin hook${hint}`,
192
+ )
193
+ }
183
194
  for (const cap of PLUGIN_FUNCTION_HOOKS) {
184
195
  if (plug[cap] !== undefined && typeof plug[cap] !== 'function') {
185
196
  throw new UserError(`${configPath}: \`plugins[${i}].${cap}\` must be a function`)