commit 50b349567c7c99ad8bbe38f9a9384bfb47a1b767
parent 2dcfb481f05f91addc307ec432af8eca541bd5bd
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 13 Oct 2026 10:51:32 -0400
common: the test kit's path joins opt out of Turbopack tracing (test:scripts' next-build-trace was red since S0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/common/testing/draft/derive.ts b/common/testing/draft/derive.ts
@@ -8,7 +8,7 @@ import { sweepToReport } from "../../lib/report/convertSweep";
import { reportToManifest, type PostOf } from "../../lib/report/convertManifest";
import { cuesOf, ORIGIN, POSTS } from "./corpus.mjs";
-const HERE = path.dirname(fileURLToPath(import.meta.url));
+const HERE = path.dirname(/* turbopackIgnore: true */ fileURLToPath(import.meta.url));
export const SWEEPS = ["basic", "quotes-in-claims", "multi-quote", "posts-only", "paragraphs", "inexact"] as const;
export type SweepName = (typeof SWEEPS)[number];
@@ -16,7 +16,7 @@ export type SweepName = (typeof SWEEPS)[number];
// The sweeps whose report and manifest are committed.
export const DERIVED = ["basic", "posts-only", "paragraphs"] as const satisfies readonly SweepName[];
-export const readSweep = (name: SweepName) => readFile(path.join(HERE, "sweeps", `${name}.md`), "utf8");
+export const readSweep = (name: SweepName) => readFile(/* turbopackIgnore: true */ path.join(/* turbopackIgnore: true */ HERE, "sweeps", `${name}.md`), "utf8");
export const postOf: PostOf = async (channel, id) => {
const p = POSTS.find((x) => x.channelSlug === channel && x.id === id);
diff --git a/common/testing/draft/regenerate.ts b/common/testing/draft/regenerate.ts
@@ -8,13 +8,13 @@ import path from "node:path";
import { fileURLToPath } from "node:url";
import { DERIVED, deriveFixture } from "./derive";
-const HERE = path.dirname(fileURLToPath(import.meta.url));
+const HERE = path.dirname(/* turbopackIgnore: true */ fileURLToPath(import.meta.url));
for (const name of DERIVED) {
const { report, manifest } = await deriveFixture(name);
- await mkdir(path.join(HERE, "reports"), { recursive: true });
- await mkdir(path.join(HERE, "manifests"), { recursive: true });
- await writeFile(path.join(HERE, "reports", `${name}.report.json`), JSON.stringify(report, null, 2) + "\n");
- await writeFile(path.join(HERE, "manifests", `${name}.video.manifest.json`), JSON.stringify(manifest, null, 2) + "\n");
+ await mkdir(/* turbopackIgnore: true */ path.join(/* turbopackIgnore: true */ HERE, "reports"), { recursive: true });
+ await mkdir(/* turbopackIgnore: true */ path.join(/* turbopackIgnore: true */ HERE, "manifests"), { recursive: true });
+ await writeFile(/* turbopackIgnore: true */ path.join(/* turbopackIgnore: true */ HERE, "reports", `${name}.report.json`), JSON.stringify(report, null, 2) + "\n");
+ await writeFile(/* turbopackIgnore: true */ path.join(/* turbopackIgnore: true */ HERE, "manifests", `${name}.video.manifest.json`), JSON.stringify(manifest, null, 2) + "\n");
console.log(`wrote ${name}`);
}