@vzn/vx 0.0.610 → 0.0.611
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/cli/show.ts +7 -3
- package/src/cli/task-verb.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vzn/vx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.611",
|
|
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.611",
|
|
25
|
+
"@vzn/vx-linux-arm64": "0.0.611",
|
|
26
|
+
"@vzn/vx-darwin-x64": "0.0.611",
|
|
27
|
+
"@vzn/vx-darwin-arm64": "0.0.611"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@anthropic-ai/sandbox-runtime": "^0.0.76"
|
package/src/cli/show.ts
CHANGED
|
@@ -154,13 +154,17 @@ export async function showCmd(args: readonly string[]): Promise<number> {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
if (bareTask) {
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
// As `vx run <task> --all` takes it: the default build is declared by no one (X-145).
|
|
158
|
+
const declares = (task: TaskConfig | undefined): boolean =>
|
|
159
|
+
task !== undefined && !isDefaultBuild(task)
|
|
160
|
+
const declaring = [...projects.values()].filter((p) =>
|
|
161
|
+
declares(declaredTask(p.config, projectName!)),
|
|
159
162
|
)
|
|
160
163
|
if (declaring.length === 0) {
|
|
161
164
|
const names = new Set<string>()
|
|
162
165
|
for (const p of projects.values())
|
|
163
|
-
for (const t of Object.
|
|
166
|
+
for (const [t, task] of Object.entries(p.config.tasks ?? {}))
|
|
167
|
+
if (declares(task)) names.add(t)
|
|
164
168
|
// `nx show projects` lists them; here a bare `vx show` does.
|
|
165
169
|
const nx = projectName === 'projects' ? ' (`nx show projects` is `vx show` here)' : ''
|
|
166
170
|
throw new UserError(
|
package/src/cli/task-verb.ts
CHANGED
|
@@ -25,7 +25,10 @@ export async function taskVerbHint(
|
|
|
25
25
|
const projects = await workspaceProjects(cwd)
|
|
26
26
|
if (projects === null) return null
|
|
27
27
|
const tasks = new Set<string>()
|
|
28
|
-
|
|
28
|
+
// The default build is no task `vx run` takes by name (X-145).
|
|
29
|
+
for (const p of projects.values())
|
|
30
|
+
for (const [t, task] of Object.entries(p.config.tasks ?? {}))
|
|
31
|
+
if (!isDefaultBuild(task)) tasks.add(t)
|
|
29
32
|
const task = tasks.has(command) ? command : typo ? nearest(command, tasks) : undefined
|
|
30
33
|
if (task === undefined) return null
|
|
31
34
|
// Nx's `nx build app`: the word after the target is its project.
|