forked from baron/baron-sso
코드체크 결과 README에 뱃지로 추가
This commit is contained in:
@@ -2,7 +2,9 @@ import { mkdir, readFile, writeFile } from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
|
||||
const repoRoot = process.cwd();
|
||||
const packages = ["adminfront", "devfront", "orgfront"];
|
||||
const defaultPackages = ["adminfront", "devfront", "orgfront"];
|
||||
const packages = process.argv.slice(2);
|
||||
const targetPackages = packages.length > 0 ? packages : defaultPackages;
|
||||
|
||||
function formatPct(value) {
|
||||
return typeof value === "number" ? `${value.toFixed(2)}%` : "n/a";
|
||||
@@ -63,7 +65,7 @@ function renderMarkdown(rows) {
|
||||
}
|
||||
|
||||
const rows = [];
|
||||
for (const packageName of packages) {
|
||||
for (const packageName of targetPackages) {
|
||||
rows.push(await readCoverageSummary(packageName));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user