Skip to content

Commit

Permalink
build: migrate remaining angular-devkit/architect to ts_project
Browse files Browse the repository at this point in the history
This completes `ts_library` to `ts_project` for the architect devkit
package.

(cherry picked from commit 7a0adb9)
  • Loading branch information
devversion authored and clydin committed Dec 17, 2024
1 parent 5fbc105 commit b78f297
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions packages/angular_devkit/architect/node/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,46 @@
# found in the LICENSE file at https://angular.dev/license

load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
load("//tools:defaults.bzl", "ts_library")
load("//tools:interop.bzl", "ts_project")

licenses(["notice"])

package(default_visibility = ["//visibility:public"])

ts_library(
ts_project(
name = "node",
srcs = glob(
include = ["**/*.ts"],
exclude = ["**/*_spec.ts"],
),
module_name = "@angular-devkit/architect/node",
module_root = "index.d.ts",
deps = [
"//packages/angular_devkit/architect",
interop_deps = [
"//packages/angular_devkit/core",
"//packages/angular_devkit/core/node",
"@npm//@types/node",
"@npm//rxjs",
],
module_name = "@angular-devkit/architect/node",
deps = [
"//:root_modules/@types/node",
"//:root_modules/rxjs",
"//packages/angular_devkit/architect:architect_rjs",
],
)

ts_library(
ts_project(
name = "node_test_lib",
testonly = True,
srcs = glob(
include = [
"**/*_spec.ts",
],
),
deps = [
":node",
"//packages/angular_devkit/architect",
interop_deps = [
"//tests/angular_devkit/architect/node/jobs:jobs_test_lib",
"@npm//rxjs",
],
deps = [
":node_rjs",
"//:root_modules/@types/jasmine",
"//:root_modules/rxjs",
"//packages/angular_devkit/architect:architect_rjs",
],
)

Expand Down

0 comments on commit b78f297

Please sign in to comment.