import path from "node:path";
import nodeFs from "node:fs/promises";
import { hashDirectory } from "../services/file-handling/write-output.js";
export async function seedPreviousCompilationFromOutdir(args) {
    const absoluteOutdir = path.resolve(args.cwd ?? process.cwd(), args.outdir);
    const outputHashes = await hashDirectory(absoluteOutdir, args.fs ?? nodeFs);
    return outputHashes ? { outputHashes } : undefined;
}
//# sourceMappingURL=seed-previous-compilation.js.map