mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Move all of our loading into a local defaults.bzl file instead of mixed loading via tools/defaults and devtolls/defaults PR Close #62627
25 lines
720 B
Text
25 lines
720 B
Text
load("//devtools/tools:defaults.bzl", "copy_to_bin", "js_library")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
# Exposed `js_library` targets need to copy files to `bazel-out`. More details here:
|
|
# https://github.com/bazelbuild/rules_nodejs/pull/3083.
|
|
copy_to_bin(
|
|
name = "js_lib_files",
|
|
srcs = [
|
|
"ensure-no-linker-decl.mjs",
|
|
"esbuild-plugin.d.ts",
|
|
"esbuild-plugin.mjs",
|
|
],
|
|
)
|
|
|
|
js_library(
|
|
name = "js_lib",
|
|
srcs = [":js_lib_files"],
|
|
deps = [
|
|
"//:node_modules/@angular/build",
|
|
"//:node_modules/@babel/core",
|
|
"//:node_modules/@babel/plugin-transform-async-generator-functions",
|
|
"//packages/compiler-cli:compiler-cli_rjs",
|
|
],
|
|
)
|