@viglet/viglet-design-system 2026.3.4 → 2026.3.5

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": "@viglet/viglet-design-system",
3
- "version": "2026.3.4",
3
+ "version": "2026.3.5",
4
4
  "type": "module",
5
5
  "description": "Viglet Design System - Shared components, hooks, utilities and design tokens for Viglet products",
6
6
  "license": "Apache-2.0",
@@ -45,8 +45,19 @@ const asJson = args.includes("--json")
45
45
  const warnOnly = args.includes("--warn")
46
46
  const manifestFlag = args.indexOf("--manifest")
47
47
  const manifestPath = manifestFlag === -1 ? null : args[manifestFlag + 1]
48
+ // VDS78 — the index to skip is the manifest's VALUE, and only when the flag is
49
+ // actually present. `indexOf` answers -1 when it is not, and `-1 + 1` is 0, which
50
+ // silently discarded the first positional root on every invocation without
51
+ // `--manifest`: `check-duplicates src app` scanned only `app`, and
52
+ // `check-duplicates no-such-dir` scanned ./src and exited 0.
53
+ //
54
+ // It hid twice over. The documented call is `check-duplicates src`, where the
55
+ // dropped argument is the same directory the default then falls back to; and every
56
+ // test in check-duplicates.test.ts passes `--manifest`, which puts the flag at index
57
+ // 1 so the arithmetic lands correctly. The suite only ever took the branch that works.
58
+ const manifestValueAt = manifestFlag === -1 ? -1 : manifestFlag + 1
48
59
  const roots = args.filter(
49
- (a, i) => !a.startsWith("--") && i !== manifestFlag + 1,
60
+ (a, i) => !a.startsWith("--") && i !== manifestValueAt,
50
61
  )
51
62
 
52
63
  function loadManifest() {