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
|
# Don't create symlinks
|
||||||
build --symlink_prefix=/
|
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")
|
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "empty_node_modules",
|
|
||||||
srcs = [],
|
|
||||||
)
|
|
||||||
|
|
||||||
nodejs_binary(
|
nodejs_binary(
|
||||||
name = "modify_tsconfig",
|
name = "modify_tsconfig",
|
||||||
data = ["modify_tsconfig.js"],
|
data = [
|
||||||
|
"modify_tsconfig.js",
|
||||||
|
],
|
||||||
entry_point = ":modify_tsconfig.js",
|
entry_point = ":modify_tsconfig.js",
|
||||||
node_modules = ":empty_node_modules",
|
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
)
|
)
|
||||||
# END-DEV-ONLY
|
# END-DEV-ONLY
|
||||||
|
@ -49,7 +49,6 @@ load("@npm//@bazel/typescript:index.bzl", "ts_library")
|
|||||||
ts_library(
|
ts_library(
|
||||||
name = "lib",
|
name = "lib",
|
||||||
srcs = glob(["*.ts"]),
|
srcs = glob(["*.ts"]),
|
||||||
node_modules = "@npm//typescript:typescript__typings",
|
|
||||||
tsconfig = ":tsconfig.json",
|
tsconfig = ":tsconfig.json",
|
||||||
deps = [
|
deps = [
|
||||||
"@npm//@types/node",
|
"@npm//@types/node",
|
||||||
|
@ -9,7 +9,6 @@ ts_library(
|
|||||||
"index.ts",
|
"index.ts",
|
||||||
],
|
],
|
||||||
module_name = "@angular/bazel",
|
module_name = "@angular/bazel",
|
||||||
node_modules = "@npm//typescript:typescript__typings",
|
|
||||||
tsconfig = ":tsconfig.json",
|
tsconfig = ":tsconfig.json",
|
||||||
visibility = [
|
visibility = [
|
||||||
"//packages/bazel:__pkg__",
|
"//packages/bazel:__pkg__",
|
||||||
@ -21,6 +20,7 @@ ts_library(
|
|||||||
"@npm//@types/node",
|
"@npm//@types/node",
|
||||||
"@npm//tsickle",
|
"@npm//tsickle",
|
||||||
"@npm//typescript",
|
"@npm//typescript",
|
||||||
|
"@npm//typescript:typescript__typings",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user