fix move temp module file to build dir

Signed-off-by: zhangrengao <zhangrengao1@huawei.com>
Change-Id: I2d5afa75204ad8e17a67e781a75442224032f233
This commit is contained in:
zhangrengao
2022-08-19 15:36:10 +08:00
parent c5368745d4
commit 8a308cd307
+1 -1
View File
@@ -687,7 +687,7 @@ function filterIntermediateModuleByHashJson(buildPath: string, moduleInfos: Arra
updateJsonObject[input] = hashInputContentData;
updateJsonObject[abcPath] = hashAbcContentData;
mkdirsSync(path.dirname(moduleInfos[i].buildFilePath));
if (projectConfig.buildArkMode === 'debug' && fs.existsSync(filterModuleInfos[i].tempFilePath)) {
if (projectConfig.buildArkMode === 'debug' && fs.existsSync(moduleInfos[i].tempFilePath)) {
fs.copyFileSync(moduleInfos[i].tempFilePath, moduleInfos[i].buildFilePath);
}
fs.copyFileSync(genAbcFileName(moduleInfos[i].tempFilePath), genAbcFileName(moduleInfos[i].buildFilePath));