mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
a9a7654cbf
This commit migrates the remaining pieces of `compiler-cli` to `ts_project`. This involves a few more things during migration: - the `ng_module` ngc_wrapped rule broke as part of this change, so we switched it to `ts_project` too. This logic is soon gone anyway. - we needed an extra pnpm "package.json" for the linker babel test. This test is loading from the real compiler-cli npm package. Babel needs a real node module for this, so this solution seems reasonable. It may be worth exploring in the future to move this test into an integration test though. - the older integrationtest in compiler-cli is removed as the coverage is much better with the compliance test suite and this test. PR Close #61862
23 lines
613 B
Python
23 lines
613 B
Python
load("//tools:defaults2.bzl", "ts_project")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_project(
|
|
name = "babel",
|
|
srcs = ["index.ts"] + glob([
|
|
"src/**/*.ts",
|
|
]),
|
|
interop_deps = [
|
|
"//packages/compiler",
|
|
"//packages/compiler-cli/linker",
|
|
"//packages/compiler-cli/private",
|
|
"//packages/compiler-cli/src/ngtsc/file_system",
|
|
"//packages/compiler-cli/src/ngtsc/logging",
|
|
"//packages/compiler-cli/src/ngtsc/translator",
|
|
],
|
|
deps = [
|
|
"//:node_modules/@babel/core",
|
|
"//:node_modules/@types/babel__core",
|
|
],
|
|
)
|