commit 42ff75097d719cf78130ccadb496280ab387eb5e
parent 80b46803d2a3c883aa6c2c39a7dc7387c9c79a0d
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 29 Sep 2026 22:12:55 -0400
common: paths.ts under(first, ...rest) — the opt-out sits before a named first argument, not a spread (release 14 review L3)
getPaths() returns the same 56 values as before from the repo root, editor/
and a directory outside the repo (hashed, old module against new).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/common/lib/paths.ts b/common/lib/paths.ts
@@ -178,9 +178,10 @@ let cached: Paths | null = null;
// reference — to every file under it when the path is a directory
// (plans/FACTS.md, "A path joined from `process.cwd()` …"). So every join on
// such a value goes through this one opted-out call. Nothing changes at run
-// time.
-function under(...parts: string[]): string {
- return path.join(/* turbopackIgnore: true */ ...parts);
+// time. The comment sits before a named first argument, not a spread: that is
+// the form Turbopack's own advice shows.
+function under(first: string, ...rest: string[]): string {
+ return path.join(/* turbopackIgnore: true */ first, ...rest);
}
export function getPaths(): Paths {