From 160ee1c275b650db04cbdba1ee09bcf73f368fc2 Mon Sep 17 00:00:00 2001 From: zhuoli Date: Mon, 17 Jan 2022 16:39:07 +0800 Subject: [PATCH] Fix npm install problem: remove npm install during compilation Signed-off-by: zhuoli Change-Id: Ieaf37fbd2e99f1aa504f50c8a4b484b255b28f57 --- ts2panda/BUILD.gn | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/ts2panda/BUILD.gn b/ts2panda/BUILD.gn index 42b43f0f6f..58901e4fd4 100755 --- a/ts2panda/BUILD.gn +++ b/ts2panda/BUILD.gn @@ -25,17 +25,8 @@ ohos_copy("ts2abc_src") { module_install_name = "" } -action("npm_install") { - visibility = [ ":*" ] - script = "scripts/npm-install.sh" - args = [ rebase_path(node_path) ] - outputs = [ target_out_dir + "/$target_name/node_modules" ] - inputs = [ "${ts2abc_root}/package.json" ] -} - ohos_copy("node_modules") { sources = [ rebase_path("${node_modules}") ] - deps = [ ":npm_install" ] outputs = [ target_out_dir + "/node_modules" ] module_install_name = "" } @@ -80,7 +71,7 @@ ark_gen_file("ts2abc_irnodes_ts") { action("npm_run_build") { visibility = [ ":*" ] deps = [ - # "$ts2abc_root:node_modules", + "$ts2abc_root:node_modules", "$ts2abc_root:ts2abc_diagnostic_ts", "$ts2abc_root:ts2abc_irnodes_ts", "$ts2abc_root:ts2abc_src", -- Gitee