commit f3546ca6814ee736b80cb59f52ef77f2a9964bb1
parent 7d4c76558d87d70b530376e9671f0ca158eb771a
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sun, 4 Oct 2026 16:38:49 -0400
report-to-video: shoot-page's cwd-derived paths opt out of the build trace
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/umtool/report-to-video/shoot-page.mjs b/umtool/report-to-video/shoot-page.mjs
@@ -339,7 +339,7 @@ export function allowedRequest(url, pagePath) {
} catch {
return false;
}
- const rel = path.relative(path.dirname(path.resolve(pagePath)), path.resolve(p));
+ const rel = path.relative(/* turbopackIgnore: true */ path.dirname(/* turbopackIgnore: true */ path.resolve(/* turbopackIgnore: true */ pagePath)), path.resolve(/* turbopackIgnore: true */ p));
return rel === "" || (!rel.startsWith("..") && !path.isAbsolute(rel));
}
@@ -384,9 +384,9 @@ export async function shootPages(items, opts = {}) {
}
async function shootOne(ctx, item, o) {
- const pagePath = path.resolve(o.baseDir ?? process.cwd(), String(item.page ?? ""));
+ const pagePath = path.resolve(/* turbopackIgnore: true */ o.baseDir ?? process.cwd(), String(item.page ?? ""));
const base = { id: item.id, page: item.page, quote: item.quote };
- if (!item.page || !existsSync(pagePath) || !statSync(pagePath).isFile()) {
+ if (!item.page || !existsSync(/* turbopackIgnore: true */ pagePath) || !statSync(/* turbopackIgnore: true */ pagePath).isFile()) {
return { ...base, ok: false, reason: "page not found" };
}
const blocked = [];
@@ -523,7 +523,7 @@ async function main() {
const outDir = path.resolve(args.out);
items = items.map((it) => ({ ...it, out: path.join(outDir, `${it.id}.png`) }));
args.opts.baseDir = path.dirname(batchPath);
- resultsFile = path.join(outDir, "results.json");
+ resultsFile = path.join(/* turbopackIgnore: true */ outDir, "results.json");
} else {
items = [{ id: "shot", page: args.page, quote: args.quote, context: args.context, out: path.resolve(args.out) }];
}
@@ -539,7 +539,7 @@ async function main() {
};
if (resultsFile) {
await mkdir(path.dirname(resultsFile), { recursive: true });
- await writeFile(resultsFile, JSON.stringify(report, null, 2) + "\n", "utf8");
+ await writeFile(/* turbopackIgnore: true */ resultsFile, JSON.stringify(report, null, 2) + "\n", "utf8");
} else {
console.log(JSON.stringify(results[0], null, 2));
}