@techninja/clearstack 0.4.27 → 0.4.28
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 +1 -1
- package/package.json +1 -1
package/lib/check.js
CHANGED
|
@@ -68,7 +68,7 @@ export async function buildChecks(dir, cfg, cmds) {
|
|
|
68
68
|
/** Resolve a scope like 'lint', 'lint es', or 'code' to runnable check(s). */
|
|
69
69
|
export function resolveChecks(checks, scope) {
|
|
70
70
|
const [first, second] = scope.split(/\s+/);
|
|
71
|
-
if (second) { const match = checks.find((c) => c.parent === first && c.key === second); return match ? [match] : null; }
|
|
71
|
+
if (second) { const match = checks.find((c) => c.parent === first && (c.key === second || c.aliases?.includes(second))); return match ? [match] : null; }
|
|
72
72
|
const children = checks.filter((c) => c.parent === first || c.aliases?.includes(first));
|
|
73
73
|
if (children.length) return children;
|
|
74
74
|
const exact = checks.find((c) => (c.key === first || c.aliases?.includes(first)) && !c.parent);
|
package/package.json
CHANGED