!1021 Fix path is cache path

Merge pull request !1021 from zrg/fix_cache_path
This commit is contained in:
openharmony_ci
2022-08-27 04:10:33 +00:00
committed by Gitee
+1 -1
View File
@@ -733,7 +733,7 @@ function writeHashJson(): void {
mkdirsSync(path.dirname(abcFile));
fs.copyFileSync(cacheAbcFilePath, abcFile);
}
if (fs.existsSync(intermediateJsBundle[i].path)) {
if (process.env.cachePath === undefined && fs.existsSync(intermediateJsBundle[i].path)) {
fs.unlinkSync(intermediateJsBundle[i].path);
}
}