blob: 94ab2e4dda844a56307fd9a610ee063759526ddb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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);
});
};
|