1 parent 0a83a78 commit 1534d17Copy full SHA for 1534d17
1 file changed
packages/rstack/bin/rs.js
@@ -4,7 +4,9 @@ import nodeModule from 'node:module';
4
// enable on-disk code caching and share its directory with child workers
5
// requires Nodejs >= 22.8.0
6
const { enableCompileCache, constants } = nodeModule;
7
-if (enableCompileCache) {
+const isCI = Boolean(process.env.CI) && process.env.CI !== 'false';
8
+// Skip CI, where the cache is unlikely to be reused.
9
+if (enableCompileCache && !isCI) {
10
try {
11
const { directory, status } = enableCompileCache();
12
// ALREADY_ENABLED returns the active version-specific cache directory.
0 commit comments