!1002 fix worker build path

Merge pull request !1002 from zrg/fix_worker
This commit is contained in:
openharmony_ci
2022-08-23 10:42:37 +00:00
committed by Gitee
+2 -1
View File
@@ -357,7 +357,8 @@ function writeFileSync(inputString: string, output: string, jsBundleFile: string
if (!(fs.existsSync(parent) && fs.statSync(parent).isDirectory())) {
mkDir(parent);
}
const sufStr: string = output.replace(projectConfig.buildPath, '');
let buildParentPath: string = path.join(projectConfig.buildPath, '..');
let sufStr: string = output.replace(buildParentPath, '');
let cacheOutputPath: string = "";
if (process.env.cachePath) {
cacheOutputPath = path.join(process.env.cachePath, TEMPORARY, sufStr);