mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
4fae4dbba8
Use the packaged versions of the packages instead of the local ts_project dependencies to prevent multiple versions of the deps to enter test bundles PR Close #62413
28 lines
1.0 KiB
Python
28 lines
1.0 KiB
Python
load("//tools:defaults2.bzl", _ng_project = "ng_project", _ts_project = "ts_project")
|
|
|
|
def ts_project(name, tsconfig = None, testonly = False, enable_runtime_rnjs_interop = False, **kwargs):
|
|
if tsconfig == None:
|
|
if native.package_name().startswith("adev/shared-docs"):
|
|
tsconfig = "//adev/shared-docs:tsconfig_test" if testonly else "//adev/shared-docs:tsconfig_build"
|
|
|
|
_ts_project(
|
|
name = name,
|
|
enable_runtime_rnjs_interop = enable_runtime_rnjs_interop,
|
|
tsconfig = tsconfig,
|
|
testonly = testonly,
|
|
**kwargs
|
|
)
|
|
|
|
def ng_project(name, tsconfig = None, testonly = False, enable_runtime_rnjs_interop = False, **kwargs):
|
|
if tsconfig == None:
|
|
if native.package_name().startswith("adev/shared-docs"):
|
|
tsconfig = "//adev/shared-docs:tsconfig_test" if testonly else "//adev/shared-docs:tsconfig_build"
|
|
|
|
_ng_project(
|
|
name = name,
|
|
enable_runtime_rnjs_interop = enable_runtime_rnjs_interop,
|
|
tsconfig = tsconfig,
|
|
testonly = testonly,
|
|
**kwargs
|
|
)
|