!543 Update nodejs from 12.18.4 to 14.21.1

Merge pull request !543 from lubinglun/nodejs
This commit is contained in:
openharmony_ci 2023-06-19 10:25:50 +00:00 committed by Gitee
commit afa8b40f17
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -47,24 +47,7 @@ action("build_ace_loader_library") {
_uglify_source_js,
]
# different host platform nodejs tool directory
if (host_os == "linux") {
if (is_standard_system) {
nodejs_path = "//prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64/bin/node"
} else {
nodejs_path =
"//prebuilts/ace-toolkit/nodejs/node-v12.18.4-linux-x64/bin/node"
}
} else if (host_os == "mac") {
if (is_standard_system) {
nodejs_path = "//prebuilts/build-tools/common/nodejs/node-v12.18.4-darwin-x64/bin/node"
} else {
nodejs_path =
"//prebuilts/ace-toolkit/nodejs/node-v12.18.4-darwin-x64/bin/node"
}
} else {
assert(false, "Unsupported host_os: $host_os")
}
nodejs_path = "//prebuilts/build-tools/common/nodejs/current/bin/node"
args = [
"--depfile",