diff --git a/ts2panda/BUILD.gn b/ts2panda/BUILD.gn index 42b43f0f6fe5bc39c75247d7f0297ba5f0a46581..58901e4fd4bc5f5b7d4bae8704deeef5a8f1781b 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",