@vzn/vx 0.0.538 → 0.0.539
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 +5 -5
- package/src/orchestrator/prepare.ts +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vzn/vx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.539",
|
|
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.
|
|
25
|
-
"@vzn/vx-linux-arm64": "0.0.
|
|
26
|
-
"@vzn/vx-darwin-x64": "0.0.
|
|
27
|
-
"@vzn/vx-darwin-arm64": "0.0.
|
|
24
|
+
"@vzn/vx-linux-x64": "0.0.539",
|
|
25
|
+
"@vzn/vx-linux-arm64": "0.0.539",
|
|
26
|
+
"@vzn/vx-darwin-x64": "0.0.539",
|
|
27
|
+
"@vzn/vx-darwin-arm64": "0.0.539"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@anthropic-ai/sandbox-runtime": "^0.0.76"
|
|
@@ -45,6 +45,7 @@ import {
|
|
|
45
45
|
buildTaskGraph,
|
|
46
46
|
excludeDependencies,
|
|
47
47
|
expandRequested,
|
|
48
|
+
isGroupTask,
|
|
48
49
|
type TaskNode,
|
|
49
50
|
undeclaredDepsError,
|
|
50
51
|
unresolvedRequests,
|
|
@@ -627,6 +628,18 @@ export async function prepareRun(options: RunOptions, log: Logger): Promise<Prep
|
|
|
627
628
|
},
|
|
628
629
|
)
|
|
629
630
|
}
|
|
631
|
+
// Args after `--` go to requested commands only; with none among them
|
|
632
|
+
// they reached nothing and the run passed, the `--watch` unheard.
|
|
633
|
+
if ((options.forwardArgs?.length ?? 0) > 0) {
|
|
634
|
+
const requestedNodes = [...nodes.values()].filter((n) => n.requested)
|
|
635
|
+
if (requestedNodes.length > 0 && requestedNodes.every(isGroupTask)) {
|
|
636
|
+
const ids = requestedNodes.map((n) => n.id)
|
|
637
|
+
const named = ids.length > 3 ? `${ids.slice(0, 3).join(', ')}, …` : ids.join(', ')
|
|
638
|
+
throw new UserError(
|
|
639
|
+
`args after \`--\` reach no task: ${named} ${ids.length === 1 ? 'has' : 'have'} no command (a group); name the task that runs one`,
|
|
640
|
+
)
|
|
641
|
+
}
|
|
642
|
+
}
|
|
630
643
|
if (hasHook(plugins, 'key')) {
|
|
631
644
|
await applyKeyHooks(plugins, nodes, { workspaceRoot, cacheDir, warn: (m) => log.status(m) })
|
|
632
645
|
}
|