import type { Command } from "commander"; import { fixDependencies } from "../actions/fixDependencies.js"; import { outputFixes } from "../actions/output.js"; export const fix = (program: Command) => { program .command("fix") .description("Runs 'npm audit fix' on each project") .option("-f, --force", "Uses 'npm audit fix --force' on each project") .action(async (options) => { let tests = await fixDependencies(options.force); outputFixes(tests); }); };