diff --git a/compiler/src/gen_abc_plugin.ts b/compiler/src/gen_abc_plugin.ts index 30dc6c0..cf67942 100644 --- a/compiler/src/gen_abc_plugin.ts +++ b/compiler/src/gen_abc_plugin.ts @@ -841,7 +841,7 @@ function writeHashJson(): void { process.exitCode = FAIL; break; } - if (!fs.existsSync(abcFile)) { + if (process.env.cachePath !== undefined) { mkdirsSync(path.dirname(abcFile)); fs.copyFileSync(cacheAbcFilePath, abcFile); }