/
githubmirror
/
angular-cli
Обзор
Документация
Войти
/
githubmirror
/
angular-cli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tools/toolchain_info.bzl
31 строка
1 KB
Alan Agius
feat(@angular/cli): add support for Node.js 26.0.0
06 май 2026, 16:16
06 май 2026, 16:16
58c0978
Код
Авторство
О чём код?
# look at the toolchains registered in the workspace file with nodejs_register_toolchains # the name can be anything the user wants this is just added to the target to create unique names # the order will match against the order in the TOOLCHAIN_VERSION list. TOOLCHAINS_NAMES = [ "node22", "node24", "node26", ] # this is the list of toolchains that should be used and are registered with nodejs_register_toolchains in the WORKSPACE file TOOLCHAINS_VERSIONS = [ select({ "@bazel_tools//src/conditions:linux_x86_64": "@node22_linux_amd64//:node_toolchain", "@bazel_tools//src/conditions:darwin": "@node22_darwin_amd64//:node_toolchain", "@bazel_tools//src/conditions:windows": "@node22_windows_amd64//:node_toolchain", }), select({ "@bazel_tools//src/conditions:linux_x86_64": "@node24_linux_amd64//:node_toolchain", "@bazel_tools//src/conditions:darwin": "@node24_darwin_amd64//:node_toolchain", "@bazel_tools//src/conditions:windows": "@node24_windows_amd64//:node_toolchain", }), select({ "@bazel_tools//src/conditions:linux_x86_64": "@node26_linux_amd64//:node_toolchain", "@bazel_tools//src/conditions:darwin": "@node26_darwin_amd64//:node_toolchain", "@bazel_tools//src/conditions:windows": "@node26_windows_amd64//:node_toolchain", }), ] # A default toolchain for use when only one is necessary DEFAULT_TOOLCHAIN_VERSION = TOOLCHAINS_VERSIONS[len(TOOLCHAINS_VERSIONS) - 1]