carry node_modules dependency.

Signed-off-by: lihong <lihong67@huawei.com>
Change-Id: Id4590789f8f5917390885159371120d5721e3840
This commit is contained in:
lihong 2023-06-25 15:29:35 +08:00
parent 616b768e77
commit 189089eb22
2 changed files with 6 additions and 11 deletions

View File

@ -125,6 +125,7 @@ action("build_ets_sysResource") {
ets_loader_sources = [ ets_loader_sources = [
"compiler/compile_plugin.js", "compiler/compile_plugin.js",
"compiler/main.js", "compiler/main.js",
"compiler/node_modules",
"compiler/npm-install.js", "compiler/npm-install.js",
"compiler/package-lock.json", "compiler/package-lock.json",
"compiler/package.json", "compiler/package.json",
@ -294,16 +295,9 @@ ohos_copy("ohos_declaration_ets_ark") {
outputs = [ target_out_dir + "/../api" ] outputs = [ target_out_dir + "/../api" ]
} }
ohos_copy("common_api_ark") { ohos_copy("ets_loader_ark_hap") {
sources = common_api_src sources = common_api_src
deps = [ ":ohos_declaration_ets_ark" ]
outputs = [ target_out_dir + "/../../developtools/api/{{source_file_part}}" ]
module_install_name = ""
}
ohos_copy("ets_loader_node_modules") {
deps = [ deps = [
":common_api_ark",
":ets_loader_ark", ":ets_loader_ark",
":ets_loader_ark_codegen", ":ets_loader_ark_codegen",
":ets_loader_ark_components", ":ets_loader_ark_components",
@ -311,7 +305,8 @@ ohos_copy("ets_loader_node_modules") {
":ets_loader_ark_form_components", ":ets_loader_ark_form_components",
":ets_loader_ark_lib", ":ets_loader_ark_lib",
":ets_loader_ark_server", ":ets_loader_ark_server",
":ohos_declaration_ets_ark",
] ]
sources = [ "//developtools/ace_ets2bundle/compiler/node_modules" ] outputs = [ target_out_dir + "/../../developtools/api/{{source_file_part}}" ]
outputs = [ target_out_dir + "/ets_loader_ark/node_modules" ] module_install_name = ""
} }

View File

@ -32,7 +32,7 @@
"//developtools/ace_ets2bundle:server", "//developtools/ace_ets2bundle:server",
"//developtools/ace_ets2bundle:codegen", "//developtools/ace_ets2bundle:codegen",
"//developtools/ace_ets2bundle:ets_loader_declaration", "//developtools/ace_ets2bundle:ets_loader_declaration",
"//developtools/ace_ets2bundle:ets_loader_node_modules" "//developtools/ace_ets2bundle:ets_loader_ark_hap"
] ]
} }
} }