@vzn/vx 0.0.272 → 0.0.274
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/foreign-flags.ts +97 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vzn/vx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.274",
|
|
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.274",
|
|
21
|
+
"@vzn/vx-linux-arm64": "0.0.274",
|
|
22
|
+
"@vzn/vx-darwin-x64": "0.0.274",
|
|
23
|
+
"@vzn/vx-darwin-arm64": "0.0.274"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@anthropic-ai/sandbox-runtime": "^0.0.76"
|
package/src/cli/foreign-flags.ts
CHANGED
|
@@ -210,6 +210,90 @@ export const FOREIGN_FLAGS: readonly ForeignFlag[] = [
|
|
|
210
210
|
outcome: 'refuse',
|
|
211
211
|
vx: 'use `--cache local:rw,remote:r`',
|
|
212
212
|
},
|
|
213
|
+
{
|
|
214
|
+
runner: 'turbo',
|
|
215
|
+
names: ['--anon-profile'],
|
|
216
|
+
value: false,
|
|
217
|
+
outcome: 'refuse',
|
|
218
|
+
vx: 'use `--profile[=<path>]`; vx has no redacting variant, so read it before sharing it',
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
runner: 'turbo',
|
|
222
|
+
names: ['--cache-workers'],
|
|
223
|
+
value: true,
|
|
224
|
+
outcome: 'refuse',
|
|
225
|
+
vx: 'vx sizes its own cache I/O: drop it',
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
runner: 'turbo',
|
|
229
|
+
names: ['--cwd'],
|
|
230
|
+
value: true,
|
|
231
|
+
outcome: 'refuse',
|
|
232
|
+
vx: 'run vx from that directory: `cd <dir> && vx run …`',
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
runner: 'turbo',
|
|
236
|
+
names: ['--dangerously-disable-package-manager-check'],
|
|
237
|
+
value: false,
|
|
238
|
+
outcome: 'refuse',
|
|
239
|
+
vx: 'vx reads no `packageManager` field: drop it',
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
runner: 'turbo',
|
|
243
|
+
names: ['--env-mode'],
|
|
244
|
+
value: true,
|
|
245
|
+
outcome: 'refuse',
|
|
246
|
+
vx: 'vx passes only the variables a task declares (strict): list the rest in `exec.env.passThrough`',
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
runner: 'turbo',
|
|
250
|
+
names: ['--framework-inference'],
|
|
251
|
+
value: true,
|
|
252
|
+
outcome: 'refuse',
|
|
253
|
+
vx: "under `turbo()` inference is Turbo's; take a name back with a `!` entry in the task's `env`",
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
runner: 'turbo',
|
|
257
|
+
names: ['--global-deps'],
|
|
258
|
+
value: true,
|
|
259
|
+
outcome: 'refuse',
|
|
260
|
+
vx: "declare them in `cache.inputs.workspaceFiles` (under `turbo()`, turbo.json's `globalDependencies`)",
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
runner: 'turbo',
|
|
264
|
+
names: ['--json'],
|
|
265
|
+
value: false,
|
|
266
|
+
outcome: 'refuse',
|
|
267
|
+
vx: "use `--dry=json` for the plan, `--summarize[=<path>]` for the run's JSON record",
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
runner: 'turbo',
|
|
271
|
+
names: ['--log-file'],
|
|
272
|
+
value: false,
|
|
273
|
+
outcome: 'refuse',
|
|
274
|
+
vx: "use `--summarize[=<path>]` for the run's JSON record",
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
runner: 'turbo',
|
|
278
|
+
names: ['--preflight'],
|
|
279
|
+
value: false,
|
|
280
|
+
outcome: 'refuse',
|
|
281
|
+
vx: '`turboCache()` sends no CORS preflight: drop it',
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
runner: 'turbo',
|
|
285
|
+
names: ['--remote-cache-timeout'],
|
|
286
|
+
value: true,
|
|
287
|
+
outcome: 'refuse',
|
|
288
|
+
vx: 'set `turboCache({ timeoutMs })` or `TURBO_REMOTE_CACHE_TIMEOUT`',
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
runner: 'turbo',
|
|
292
|
+
names: ['--single-package'],
|
|
293
|
+
value: false,
|
|
294
|
+
outcome: 'refuse',
|
|
295
|
+
vx: 'a repo with no workspaces is one project already: drop it',
|
|
296
|
+
},
|
|
213
297
|
{
|
|
214
298
|
runner: 'turbo',
|
|
215
299
|
names: ['--token', '--team', '--api'],
|
|
@@ -408,11 +492,24 @@ export const FOREIGN_FLAGS: readonly ForeignFlag[] = [
|
|
|
408
492
|
]
|
|
409
493
|
|
|
410
494
|
/** Nx's verbs, as its users type them: `vx run` takes their flags. */
|
|
495
|
+
const TURBO_LOGIN =
|
|
496
|
+
'vx has no login: a remote cache is a plugin, `turboCache()` from @vzn/vx-migrate in vx.workspace.ts, which reads TURBO_TOKEN / TURBO_TEAM / TURBO_API'
|
|
497
|
+
|
|
411
498
|
export const FOREIGN_VERBS: Readonly<Record<string, string>> = {
|
|
412
499
|
'run-many':
|
|
413
500
|
'`nx run-many` is `vx run <task> --all` here; -t, -p, --exclude and --parallel work as they are',
|
|
414
501
|
affected:
|
|
415
502
|
'`nx affected` is `vx run <task> --affected` here; -t, --base and --exclude work as they are',
|
|
503
|
+
graph: '`nx graph` is `vx run <task> --graph[=<file>.dot]` here: the task graph as Graphviz DOT',
|
|
504
|
+
ls: '`turbo ls` is `vx show` here: every project, its directory and its task count',
|
|
505
|
+
query:
|
|
506
|
+
'`turbo query` has no vx form: `vx run <task> --dry=json` prints the planned graph as JSON',
|
|
507
|
+
reset: '`nx reset` is `vx cache prune` here (or remove the cache directory `vx info` names)',
|
|
508
|
+
daemon: 'vx has no daemon: there is nothing to start or stop',
|
|
509
|
+
login: TURBO_LOGIN,
|
|
510
|
+
logout: TURBO_LOGIN,
|
|
511
|
+
link: TURBO_LOGIN,
|
|
512
|
+
unlink: TURBO_LOGIN,
|
|
416
513
|
}
|
|
417
514
|
|
|
418
515
|
/**
|