
Adds the `LinkablePackageInfo` to the `ng_module` rule. This allows
the linker to properly link `ng_module` targets in Node runtime
actions. Currently this does not work properly and packages like
`@angular/core` are not linked, so we cannot rely on the linker.
9a5de3728b/internal/linker/link_node_modules.bzl (L144-L146)
.
PR Close #37623
52 lines
1.8 KiB
Python
52 lines
1.8 KiB
Python
"""Allows different paths for these imports in google3.
|
|
"""
|
|
|
|
load(
|
|
"@npm_bazel_typescript//internal:build_defs.bzl",
|
|
_tsc_wrapped_tsconfig = "tsc_wrapped_tsconfig",
|
|
)
|
|
load(
|
|
"@npm_bazel_typescript//internal:common/compilation.bzl",
|
|
_COMMON_ATTRIBUTES = "COMMON_ATTRIBUTES",
|
|
_COMMON_OUTPUTS = "COMMON_OUTPUTS",
|
|
_DEPS_ASPECTS = "DEPS_ASPECTS",
|
|
_compile_ts = "compile_ts",
|
|
_ts_providers_dict_to_struct = "ts_providers_dict_to_struct",
|
|
)
|
|
load(
|
|
"@npm_bazel_typescript//internal:ts_config.bzl",
|
|
_TsConfigInfo = "TsConfigInfo",
|
|
)
|
|
load(
|
|
"@build_bazel_rules_nodejs//:providers.bzl",
|
|
_LinkablePackageInfo = "LinkablePackageInfo",
|
|
_NpmPackageInfo = "NpmPackageInfo",
|
|
_js_ecma_script_module_info = "js_ecma_script_module_info",
|
|
_js_named_module_info = "js_named_module_info",
|
|
_node_modules_aspect = "node_modules_aspect",
|
|
)
|
|
|
|
LinkablePackageInfo = _LinkablePackageInfo
|
|
NpmPackageInfo = _NpmPackageInfo
|
|
node_modules_aspect = _node_modules_aspect
|
|
|
|
tsc_wrapped_tsconfig = _tsc_wrapped_tsconfig
|
|
COMMON_ATTRIBUTES = _COMMON_ATTRIBUTES
|
|
COMMON_OUTPUTS = _COMMON_OUTPUTS
|
|
compile_ts = _compile_ts
|
|
DEPS_ASPECTS = _DEPS_ASPECTS
|
|
ts_providers_dict_to_struct = _ts_providers_dict_to_struct
|
|
|
|
# Should be defined as `BuildSettingInfo` from Skylib, but a dependency on
|
|
# Skylib is not necessary here because this is only used in google3 where Skylib
|
|
# is loaded differently anyways where this file is overridden.
|
|
BuildSettingInfo = provider(doc = "Not used outside google3.")
|
|
|
|
DEFAULT_API_EXTRACTOR = "@npm//@angular/bazel/bin:api-extractor"
|
|
DEFAULT_NG_COMPILER = "@npm//@angular/bazel/bin:ngc-wrapped"
|
|
DEFAULT_NG_XI18N = "@npm//@angular/bazel/bin:xi18n"
|
|
FLAT_DTS_FILE_SUFFIX = ".bundle.d.ts"
|
|
TsConfigInfo = _TsConfigInfo
|
|
js_ecma_script_module_info = _js_ecma_script_module_info
|
|
js_named_module_info = _js_named_module_info
|