From d8247ed168fa4b316ed14df2ae8c3ca3bb5fe71e Mon Sep 17 00:00:00 2001 From: Zack Jackson <25274700+ScriptedAlchemy@users.noreply.github.com> Date: Tue, 23 Sep 2025 22:06:42 -0700 Subject: [PATCH] fix: keep federated-css e2e cache local --- federated-css/scripts/start-all.cjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/federated-css/scripts/start-all.cjs b/federated-css/scripts/start-all.cjs index 332e84e1df..da6c0c3238 100644 --- a/federated-css/scripts/start-all.cjs +++ b/federated-css/scripts/start-all.cjs @@ -1,9 +1,16 @@ const { spawn } = require('node:child_process'); const waitOn = require('wait-on'); const path = require('node:path'); +const fs = require('node:fs'); const root = path.resolve(__dirname, '..'); +// Ensure v8 compile cache writes go to a local ignored folder instead of polluting +// sibling workspaces (corepack/pnpm relies on this cache under the hood). +const v8CacheDir = path.join(root, '.cache', 'v8-compile-cache'); +fs.mkdirSync(v8CacheDir, { recursive: true }); +process.env.V8_COMPILE_CACHE_CACHE_DIR = v8CacheDir; + function run(cmd, args) { return spawn(cmd, args, { stdio: 'inherit', cwd: root, shell: true }); }