From 14f1921720e52260646cfb57c9cc4d5f2c6c7a81 Mon Sep 17 00:00:00 2001 From: zhangchen Date: Tue, 5 Mar 2024 17:27:16 +0800 Subject: [PATCH] Modify the location of tsc [arkguard] Issue: https://gitee.com/openharmony/third_party_typescript/issues/I9610E Signed-off-by: zhangchen Change-Id: If27e7819c3fe365bc32c6887aaa74319d82fe84a --- arkguard/BUILD.gn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arkguard/BUILD.gn b/arkguard/BUILD.gn index 7914c14f91..7078f2ae7d 100644 --- a/arkguard/BUILD.gn +++ b/arkguard/BUILD.gn @@ -13,6 +13,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +typescript_dir = get_label_info("//third_party/typescript:build_typescript", + "target_out_dir") + action("build_arkguard") { sources = [ "package.json", @@ -57,7 +60,7 @@ action("build_arkguard") { script = "compile_arkguard.py" args = [ rebase_path(get_path_info("./", "abspath")), - rebase_path("//third_party/typescript/ohos-typescript-4.9.5-r4.tgz"), + rebase_path("${typescript_dir}/ohos-typescript-4.9.5-r4.tgz"), rebase_path("${target_out_dir}"), ] -- Gitee