@vzn/vx 0.0.260 → 0.0.262
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/help.ts +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vzn/vx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.262",
|
|
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.
|
|
21
|
-
"@vzn/vx-linux-arm64": "0.0.
|
|
22
|
-
"@vzn/vx-darwin-x64": "0.0.
|
|
23
|
-
"@vzn/vx-darwin-arm64": "0.0.
|
|
20
|
+
"@vzn/vx-linux-x64": "0.0.262",
|
|
21
|
+
"@vzn/vx-linux-arm64": "0.0.262",
|
|
22
|
+
"@vzn/vx-darwin-x64": "0.0.262",
|
|
23
|
+
"@vzn/vx-darwin-arm64": "0.0.262"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@anthropic-ai/sandbox-runtime": "^0.0.76"
|
package/src/cli/help.ts
CHANGED
|
@@ -40,7 +40,7 @@ export function helpText(pluginCommands: readonly string[] = []): string {
|
|
|
40
40
|
'vx — open, extensible monorepo task runner',
|
|
41
41
|
'',
|
|
42
42
|
'Usage:',
|
|
43
|
-
' vx run [OPTIONS] [TASK | PKG#TASK] [-- forwarded-args...]',
|
|
43
|
+
' vx run [OPTIONS] [TASK | PKG#TASK ...] [-- forwarded-args...]',
|
|
44
44
|
' vx watch [OPTIONS] TASK [-- forwarded-args...]',
|
|
45
45
|
' vx cache prune [--older-than <duration>] [--max-size <size>] [--dry-run] [--format pretty|json] [--cache-dir <path>]',
|
|
46
46
|
' vx lock [--check]',
|
|
@@ -216,13 +216,17 @@ export function flagHint(verb: string, arg: string): string {
|
|
|
216
216
|
if (!arg.startsWith('-')) return ''
|
|
217
217
|
const name = arg.replace(/=.*$/, '')
|
|
218
218
|
const flags = acceptedFlags(verb)
|
|
219
|
+
// A flag cut short at a word (`--dry` for prune's `--dry-run`, which
|
|
220
|
+
// `vx run` spells `--dry`) is too many edits away for either budget.
|
|
221
|
+
const cut = flags.filter((f) => f.startsWith(`${name}-`))
|
|
219
222
|
const best =
|
|
220
223
|
nearest(name, flags) ??
|
|
221
224
|
nearest(
|
|
222
225
|
name,
|
|
223
226
|
flags.filter((f) => f.slice(0, 5) === name.slice(0, 5)),
|
|
224
227
|
3,
|
|
225
|
-
)
|
|
228
|
+
) ??
|
|
229
|
+
(cut.length === 1 ? cut[0] : undefined)
|
|
226
230
|
return best === undefined ? '' : ` (did you mean ${best}?)`
|
|
227
231
|
}
|
|
228
232
|
|