@clipboard-health/ai-rules 2.14.7 → 2.14.9
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 +1 -1
- package/scripts/sync.js +4 -6
package/package.json
CHANGED
package/scripts/sync.js
CHANGED
|
@@ -72,22 +72,20 @@ function parseArguments() {
|
|
|
72
72
|
for (const argument of processArguments.slice(1)) {
|
|
73
73
|
if (argument === "--include") {
|
|
74
74
|
mode = "include";
|
|
75
|
-
continue;
|
|
76
75
|
}
|
|
77
|
-
if (argument === "--exclude") {
|
|
76
|
+
else if (argument === "--exclude") {
|
|
78
77
|
mode = "exclude";
|
|
79
|
-
continue;
|
|
80
78
|
}
|
|
81
|
-
if (!mode) {
|
|
79
|
+
else if (!mode) {
|
|
82
80
|
console.error(`❌ Error: Unexpected argument "${argument}"`);
|
|
83
81
|
printUsageAndExit();
|
|
84
82
|
}
|
|
85
|
-
if (!isRuleId(argument)) {
|
|
83
|
+
else if (!isRuleId(argument)) {
|
|
86
84
|
console.error(`❌ Error: Unknown rule "${argument}"`);
|
|
87
85
|
console.error(`Available rules: ${Object.keys(constants_1.RULE_FILES).join(", ")}`);
|
|
88
86
|
process.exit(1);
|
|
89
87
|
}
|
|
90
|
-
if (mode === "include") {
|
|
88
|
+
else if (mode === "include") {
|
|
91
89
|
extraIncludes.push(argument);
|
|
92
90
|
}
|
|
93
91
|
else {
|