@vzn/vx 0.0.457 → 0.0.459

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.457",
3
+ "version": "0.0.459",
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.457",
25
- "@vzn/vx-linux-arm64": "0.0.457",
26
- "@vzn/vx-darwin-x64": "0.0.457",
27
- "@vzn/vx-darwin-arm64": "0.0.457"
24
+ "@vzn/vx-linux-x64": "0.0.459",
25
+ "@vzn/vx-linux-arm64": "0.0.459",
26
+ "@vzn/vx-darwin-x64": "0.0.459",
27
+ "@vzn/vx-darwin-arm64": "0.0.459"
28
28
  },
29
29
  "dependencies": {
30
30
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
@@ -657,6 +657,9 @@ export function migrateScripts(
657
657
  const root = metas.length > 1 ? workspaceRootOf(metas) : undefined
658
658
  const notes: string[] = []
659
659
  const lifecycleBuilds: [string, string, string][] = []
660
+ // Members that got no config: with nothing named they vanished from the
661
+ // summary, and a reader could not tell skipped from forgotten.
662
+ const idle: string[] = []
660
663
  // The rest check the whole repo (`lint: oxlint .`, `test: vitest`):
661
664
  // `vx run lint` found no project in remix, wagmi or element-plus. Such a
662
665
  // script maps onto the root, when the root has a name (vx skips a
@@ -959,6 +962,19 @@ export function migrateScripts(
959
962
  projects.push({ name: meta.name, dir: meta.dir, importLines, tasks })
960
963
  }
961
964
  }
965
+ for (const meta of mapped) {
966
+ if (meta === rootMeta || projects.some((p) => p.dir === meta.dir)) continue
967
+ const scripts = scriptsOf(meta)
968
+ const runs = Object.keys(scripts).some(
969
+ (n) => typeof scripts[n] === 'string' && scripts[n] !== '' && !LIFECYCLE.test(n),
970
+ )
971
+ if (!runs && !lifecycleBuilds.some(([name]) => name === meta.name)) idle.push(meta.name)
972
+ }
973
+ if (idle.length > 0 && projects.length > 0) {
974
+ notes.push(
975
+ `${idle.length === 1 ? '1 package got' : `${idle.length} packages got`} no vx.config.ts, having no script to run (none, or only the package manager's lifecycle hooks): ${listed(idle)}; each is still a project, and a task declared in its own vx.config.ts runs`,
976
+ )
977
+ }
962
978
  const owner = metas[0] === undefined ? undefined : ownerOf(metas[0].dir, hookMemo)
963
979
  if (owner?.manager === 'berry' && usesPnp(owner.at)) notes.push(PNP_NOTE)
964
980