build(bazel): replace yarn_install(name = "npm") with @npm local_reporsitory() to speed up build (#27469)
PR Close #27469
This commit is contained in:
8
tools/npm_workspace/@angular/bazel/BUILD.bazel
Normal file
8
tools/npm_workspace/@angular/bazel/BUILD.bazel
Normal file
@ -0,0 +1,8 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
# Empty filegroup here so that @npm//@angular/bazel is a valid Bazel target
|
||||
# for the @angular//:@angular/bazel/ngc-wrapped target
|
||||
filegroup(
|
||||
name = "bazel",
|
||||
srcs = [],
|
||||
)
|
8
tools/npm_workspace/@bazel/typescript/BUILD.bazel
Normal file
8
tools/npm_workspace/@bazel/typescript/BUILD.bazel
Normal file
@ -0,0 +1,8 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
# Alias here so that @npm//@bazel/typescript is a valid Bazel target
|
||||
# which is reference in build_bazel_rules_typescript/BUILD.bazel
|
||||
alias(
|
||||
name = "typescript",
|
||||
actual = "@ngdeps//@bazel/typescript",
|
||||
)
|
1
tools/npm_workspace/BUILD.bazel
Normal file
1
tools/npm_workspace/BUILD.bazel
Normal file
@ -0,0 +1 @@
|
||||
# Marker file that this directory is a bazel package
|
1
tools/npm_workspace/WORKSPACE
Normal file
1
tools/npm_workspace/WORKSPACE
Normal file
@ -0,0 +1 @@
|
||||
workspace(name = "npm")
|
Reference in New Issue
Block a user