@techninja/clearstack 0.4.26 → 0.4.27
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/lib/check.js +2 -2
- package/package.json +1 -1
package/lib/check.js
CHANGED
|
@@ -69,9 +69,9 @@ export async function buildChecks(dir, cfg, cmds) {
|
|
|
69
69
|
export function resolveChecks(checks, scope) {
|
|
70
70
|
const [first, second] = scope.split(/\s+/);
|
|
71
71
|
if (second) { const match = checks.find((c) => c.parent === first && c.key === second); return match ? [match] : null; }
|
|
72
|
-
const children = checks.filter((c) => c.parent === first);
|
|
72
|
+
const children = checks.filter((c) => c.parent === first || c.aliases?.includes(first));
|
|
73
73
|
if (children.length) return children;
|
|
74
|
-
const exact = checks.find((c) => c.key === first && !c.parent);
|
|
74
|
+
const exact = checks.find((c) => (c.key === first || c.aliases?.includes(first)) && !c.parent);
|
|
75
75
|
return exact ? [exact] : null;
|
|
76
76
|
}
|
|
77
77
|
|
package/package.json
CHANGED