Prettier had never been run in --check mode here before, so this had drifted across most files (markdown tables, long option() chains, line wrapping). Purely formatting, no logic changes - needed so a CI format:check gate can actually pass. Adds .prettierignore for pnpm-lock.yaml specifically: prettier's YAML formatter rewrites every quoted key (single -> double quotes) producing an ~8700-line diff of pure noise on a file pnpm itself owns the formatting of. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
20 lines
535 B
JavaScript
20 lines
535 B
JavaScript
#!/usr/bin/env node
|
|
const args = process.argv.slice(2);
|
|
|
|
function getArg(name) {
|
|
const index = args.indexOf(name);
|
|
return index === -1 ? undefined : args[index + 1];
|
|
}
|
|
|
|
const targetDir = getArg("--dir");
|
|
const olderThanDays = getArg("--days");
|
|
const types = getArg("--types");
|
|
|
|
console.log(
|
|
`Scanning ${targetDir} for files older than ${olderThanDays} days (types: ${types})`,
|
|
);
|
|
if (process.env.CLEANUP_API_KEY) {
|
|
console.log("Using configured external API key.");
|
|
}
|
|
console.log("No matching files found. Cleanup complete.");
|