!1000 fix worker build path

Merge pull request !1000 from zrg/fix_worker_release
This commit is contained in:
openharmony_ci
2022-08-23 10:26:40 +00:00
committed by Gitee
+3 -1
View File
@@ -102,7 +102,9 @@ function writeFileSync(inputString: string, output: string, jsBundleFile: string
if (!(fs.existsSync(parent) && fs.statSync(parent).isDirectory())) {
mkDir(parent);
}
const sufStr: string = output.replace(buildPathInfo, '');
let buildParentPath: string = path.join(buildPathInfo, '..');
let sufStr: string = output.replace(buildParentPath, '');
let cacheOutputPath: string = "";
if (process.env.cachePath) {
cacheOutputPath = path.join(process.env.cachePath, "temporary", sufStr);