fix(bazel): update build tooling for latest changes in rules_nodejs (#40710)
Update the build tooling to handle the changes in the latest version of rules_nodejs. PR Close #40710
This commit is contained in:
parent
cbdb5e208e
commit
696f7bccfe
|
@ -22,7 +22,3 @@ build --define=enable_legacy_rollup_rule=1
|
|||
|
||||
# Don't create symlinks
|
||||
build --symlink_prefix=/
|
||||
|
||||
# Turn on managed directories feature in Bazel
|
||||
# This allows us to avoid installing a second copy of node_modules
|
||||
# common --experimental_allow_incremental_repository_updates
|
||||
|
|
|
@ -11,16 +11,12 @@ exports_files(glob(["*.bzl"]))
|
|||
|
||||
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
|
||||
|
||||
filegroup(
|
||||
name = "empty_node_modules",
|
||||
srcs = [],
|
||||
)
|
||||
|
||||
nodejs_binary(
|
||||
name = "modify_tsconfig",
|
||||
data = ["modify_tsconfig.js"],
|
||||
data = [
|
||||
"modify_tsconfig.js",
|
||||
],
|
||||
entry_point = ":modify_tsconfig.js",
|
||||
node_modules = ":empty_node_modules",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
# END-DEV-ONLY
|
||||
|
|
|
@ -49,7 +49,6 @@ load("@npm//@bazel/typescript:index.bzl", "ts_library")
|
|||
ts_library(
|
||||
name = "lib",
|
||||
srcs = glob(["*.ts"]),
|
||||
node_modules = "@npm//typescript:typescript__typings",
|
||||
tsconfig = ":tsconfig.json",
|
||||
deps = [
|
||||
"@npm//@types/node",
|
||||
|
|
|
@ -9,7 +9,6 @@ ts_library(
|
|||
"index.ts",
|
||||
],
|
||||
module_name = "@angular/bazel",
|
||||
node_modules = "@npm//typescript:typescript__typings",
|
||||
tsconfig = ":tsconfig.json",
|
||||
visibility = [
|
||||
"//packages/bazel:__pkg__",
|
||||
|
@ -21,6 +20,7 @@ ts_library(
|
|||
"@npm//@types/node",
|
||||
"@npm//tsickle",
|
||||
"@npm//typescript",
|
||||
"@npm//typescript:typescript__typings",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue