@vzn/vx 0.0.302 → 0.0.304

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vzn/vx",
3
- "version": "0.0.302",
3
+ "version": "0.0.304",
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.302",
21
- "@vzn/vx-linux-arm64": "0.0.302",
22
- "@vzn/vx-darwin-x64": "0.0.302",
23
- "@vzn/vx-darwin-arm64": "0.0.302"
20
+ "@vzn/vx-linux-x64": "0.0.304",
21
+ "@vzn/vx-linux-arm64": "0.0.304",
22
+ "@vzn/vx-darwin-x64": "0.0.304",
23
+ "@vzn/vx-darwin-arm64": "0.0.304"
24
24
  },
25
25
  "dependencies": {
26
26
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
@@ -270,13 +270,16 @@ export function migrateScripts(
270
270
  const rootName =
271
271
  root?.name ??
272
272
  (outsideRuns
273
- ? typeof outside?.['name'] === 'string'
273
+ ? typeof outside?.['name'] === 'string' && outside['name'] !== ''
274
274
  ? outside['name']
275
275
  : 'package.json'
276
276
  : undefined)
277
277
  if (rootName !== undefined) {
278
+ // A nameless root's vx.config is skipped (vx names projects by their
279
+ // manifest's name), so the hand-written one needs a name first (vuejs/core).
278
280
  notes.push(
279
- `${rootName} (the workspace root) not mapped: its scripts run the workspace; declare its own tasks in its vx.config by hand`,
281
+ `${rootName} (the workspace root) not mapped: its scripts run the workspace; declare its own tasks in its vx.config by hand` +
282
+ (rootName === 'package.json' ? ', after giving its package.json a "name"' : ''),
280
283
  )
281
284
  }
282
285
  for (const meta of metas) {
@@ -568,8 +568,9 @@ export async function listProjects(workspace: Workspace): Promise<ProjectMeta[]>
568
568
  // fine for a dir that declares no tasks; a dir with a vx config was
569
569
  // meant to run.
570
570
  if (configPath !== null) {
571
+ const rel = relPosix(workspace.root, dir)
571
572
  process.stderr.write(
572
- `vx: ${relPosix(workspace.root, dir)} has a vx config but its package.json has no "name" — skipped\n`,
573
+ `vx: ${rel === '' ? 'the workspace root' : rel} has a vx config but its package.json has no "name" — skipped\n`,
573
574
  )
574
575
  }
575
576
  continue