refactor: trim tooling helper exports

This commit is contained in:
Peter Steinberger
2026-05-02 07:53:11 +01:00
parent d111676bcb
commit 395fc11005
5 changed files with 7 additions and 11 deletions

View File

@@ -3,7 +3,7 @@ import fs from "node:fs";
import os from "node:os";
import path from "node:path";
export const normalizeRepoPath = (value) => value.split(path.sep).join("/");
const normalizeRepoPath = (value) => value.split(path.sep).join("/");
const repoRoot = path.resolve(process.cwd());
export function normalizeTrackedRepoPath(value) {
@@ -29,10 +29,6 @@ export function tryReadJsonFile(filePath, fallback) {
}
}
export function writeJsonFile(filePath, value) {
fs.writeFileSync(filePath, `${JSON.stringify(value, null, 2)}\n`);
}
export function runVitestJsonReport({
config,
reportPath = "",