Skip to content

Commit d8247ed

Browse files
fix: keep federated-css e2e cache local
1 parent f962097 commit d8247ed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

federated-css/scripts/start-all.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
const { spawn } = require('node:child_process');
22
const waitOn = require('wait-on');
33
const path = require('node:path');
4+
const fs = require('node:fs');
45

56
const root = path.resolve(__dirname, '..');
67

8+
// Ensure v8 compile cache writes go to a local ignored folder instead of polluting
9+
// sibling workspaces (corepack/pnpm relies on this cache under the hood).
10+
const v8CacheDir = path.join(root, '.cache', 'v8-compile-cache');
11+
fs.mkdirSync(v8CacheDir, { recursive: true });
12+
process.env.V8_COMPILE_CACHE_CACHE_DIR = v8CacheDir;
13+
714
function run(cmd, args) {
815
return spawn(cmd, args, { stdio: 'inherit', cwd: root, shell: true });
916
}

0 commit comments

Comments
 (0)