@vzn/vx 0.0.270 → 0.0.271

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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/cli/show.ts +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vzn/vx",
3
- "version": "0.0.270",
3
+ "version": "0.0.271",
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.270",
21
- "@vzn/vx-linux-arm64": "0.0.270",
22
- "@vzn/vx-darwin-x64": "0.0.270",
23
- "@vzn/vx-darwin-arm64": "0.0.270"
20
+ "@vzn/vx-linux-x64": "0.0.271",
21
+ "@vzn/vx-linux-arm64": "0.0.271",
22
+ "@vzn/vx-darwin-x64": "0.0.271",
23
+ "@vzn/vx-darwin-arm64": "0.0.271"
24
24
  },
25
25
  "dependencies": {
26
26
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
package/src/cli/show.ts CHANGED
@@ -34,6 +34,9 @@ export function parseShowArgs(args: readonly string[]): ShowArgs {
34
34
  else if (a.startsWith('--format=')) format = a.slice('--format='.length)
35
35
  else if (a.startsWith('-'))
36
36
  return { ...out, error: `unknown flag: ${a}${flagHint('show', a)}${seeHelp('show')}` }
37
+ else if (out.target === 'project')
38
+ // Nx's spelling: `nx show project <name>`.
39
+ return { ...out, error: `\`nx show project ${a}\` is \`vx show ${a}\` here` }
37
40
  else if (out.target !== undefined)
38
41
  return { ...out, error: `unexpected argument: ${a}${seeHelp('show')}` }
39
42
  // An empty name is a part of every name: its "did you mean" listed the
@@ -103,8 +106,10 @@ export async function showCmd(args: readonly string[]): Promise<number> {
103
106
  const names = new Set<string>()
104
107
  for (const p of projects.values())
105
108
  for (const t of Object.keys(p.config.tasks ?? {})) names.add(t)
109
+ // `nx show projects` lists them; here a bare `vx show` does.
110
+ const nx = projectName === 'projects' ? ' (`nx show projects` is `vx show` here)' : ''
106
111
  throw new UserError(
107
- `unknown project or task: "${projectName}"${suggest(projectName!, [...byName.keys(), ...names])}`,
112
+ `unknown project or task: "${projectName}"${nx}${suggest(projectName!, [...byName.keys(), ...names])}`,
108
113
  )
109
114
  }
110
115
  process.stdout.write(renderTaskAcross(root, declaring, projectName!, parsed.format))