@vzn/vx 0.0.406 → 0.0.408
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/workspace/migration.ts +12 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vzn/vx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.408",
|
|
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.408",
|
|
25
|
+
"@vzn/vx-linux-arm64": "0.0.408",
|
|
26
|
+
"@vzn/vx-darwin-x64": "0.0.408",
|
|
27
|
+
"@vzn/vx-darwin-arm64": "0.0.408"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@anthropic-ai/sandbox-runtime": "^0.0.76"
|
|
@@ -352,7 +352,17 @@ export async function applyMigration(args: ApplyMigrationArgs): Promise<number>
|
|
|
352
352
|
const report: string[] = []
|
|
353
353
|
// Single-project mode with packages the root's missing `workspaces` never
|
|
354
354
|
// reaches: the scripts exist, the globs do not (item 248).
|
|
355
|
-
const
|
|
355
|
+
const workspace = empty ? await loadWorkspace(root) : undefined
|
|
356
|
+
const unreached = workspace === undefined ? [] : await unreachedPackages(workspace)
|
|
357
|
+
// Globs that reach no package: "no scripts" was true and named nothing
|
|
358
|
+
// to fix (M-42).
|
|
359
|
+
const globs = workspace?.packageGlobs.filter((g) => g !== '.') ?? []
|
|
360
|
+
const noMembers =
|
|
361
|
+
globs.length > 0 && metas.every((m) => path.resolve(m.dir) === path.resolve(root))
|
|
362
|
+
? [
|
|
363
|
+
`the workspace globs (${globs.map((g) => `"${g}"`).join(', ')}) match no package.json: add a package under one, or fix the glob`,
|
|
364
|
+
]
|
|
365
|
+
: []
|
|
356
366
|
if (empty && unreached.length > 0) {
|
|
357
367
|
report.push(
|
|
358
368
|
`${verb}: ${unreachedHint(unreached)}`,
|
|
@@ -365,7 +375,7 @@ export async function applyMigration(args: ApplyMigrationArgs): Promise<number>
|
|
|
365
375
|
} else if (empty) {
|
|
366
376
|
report.push(
|
|
367
377
|
`${verb}: no package.json scripts to turn into tasks.`,
|
|
368
|
-
...(args.notes ?? []).map((n) => `note: ${n}`),
|
|
378
|
+
...[...noMembers, ...(args.notes ?? [])].map((n) => `note: ${n}`),
|
|
369
379
|
hasWorkspaceFile
|
|
370
380
|
? `${workspaceName} already exists.`
|
|
371
381
|
: dry
|