This enabled dts flattening in the final distrubutable package. Notes: - For the time being this is an opt-in feature via the `ng_module` attribute `bundle_dts`, however in the near future this will be turned on by default. - This only supports the legacy compiler `ngc`, as `ngtsc` emits namespaced imports `import * as __` from local modules which is not supported for the time being by API Extractor. See: https://github.com/Microsoft/web-build-tools/issues/1029 Ref: TOOL-611 PR Close #28588
34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
"""Allows different paths for these imports in google3.
|
|
"""
|
|
|
|
load(
|
|
"@build_bazel_rules_typescript//internal:build_defs.bzl",
|
|
_tsc_wrapped_tsconfig = "tsc_wrapped_tsconfig",
|
|
)
|
|
load(
|
|
"@build_bazel_rules_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(
|
|
"@build_bazel_rules_nodejs//internal/common:node_module_info.bzl",
|
|
_NodeModuleInfo = "NodeModuleInfo",
|
|
_collect_node_modules_aspect = "collect_node_modules_aspect",
|
|
)
|
|
|
|
NodeModuleInfo = _NodeModuleInfo
|
|
collect_node_modules_aspect = _collect_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
|
|
|
|
DEFAULT_NG_COMPILER = "@angular//:@angular/bazel/ngc-wrapped"
|
|
DEFAULT_NG_XI18N = "@npm//@angular/bazel/bin:xi18n"
|
|
FLAT_DTS_FILE_SUFFIX = ".bundle.d.ts"
|