mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-28 06:31:11 +00:00
20 lines
580 B
JavaScript
20 lines
580 B
JavaScript
#!/usr/bin/env node
|
|
import { collectDeprecatedInternalConfigApiViolations } from "./lib/deprecated-config-api-guard.mjs";
|
|
|
|
export function main() {
|
|
const violations = collectDeprecatedInternalConfigApiViolations();
|
|
if (violations.length === 0) {
|
|
console.log("deprecated internal config API guard passed");
|
|
return 0;
|
|
}
|
|
|
|
console.error("Deprecated internal config API guard failed:");
|
|
for (const violation of violations) {
|
|
console.error(`- ${violation}`);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
process.exitCode = main();
|
|
}
|