Skip to content

Commit

Permalink
build: migrate angular-devkit/architect-cli to ts_project
Browse files Browse the repository at this point in the history
This migrates more package code to `ts_project` of `rules_js`.

(cherry picked from commit f728f2f)
  • Loading branch information
devversion authored and clydin committed Dec 17, 2024
1 parent b78f297 commit df36a86
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
24 changes: 13 additions & 11 deletions packages/angular_devkit/architect_cli/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load("//tools:defaults.bzl", "pkg_npm", "ts_library")
load("//tools:defaults.bzl", "pkg_npm")
load("//tools:interop.bzl", "ts_project")

# Copyright Google Inc. All Rights Reserved.
#
Expand All @@ -8,22 +9,23 @@ licenses(["notice"])

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

ts_library(
ts_project(
name = "architect_cli",
package_name = "@angular-devkit/architect-cli",
srcs = [
"bin/architect.ts",
] + glob(["src/**/*.ts"]),
module_name = "@angular-devkit/architect-cli",
deps = [
"//packages/angular_devkit/architect",
"//packages/angular_devkit/architect/node",
interop_deps = [
"//packages/angular_devkit/core",
"//packages/angular_devkit/core/node",
"@npm//@types/node",
"@npm//@types/progress",
"@npm//@types/yargs-parser",
"@npm//ansi-colors",
],
module_name = "@angular-devkit/architect-cli",
deps = [
"//:root_modules/@types/node",
"//:root_modules/@types/progress",
"//:root_modules/@types/yargs-parser",
"//:root_modules/ansi-colors",
"//packages/angular_devkit/architect:architect_rjs",
"//packages/angular_devkit/architect/node:node_rjs",
],
)

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
"@angular-devkit/schematics/tools": ["./packages/angular_devkit/schematics/tools/index"],
"@angular-devkit/schematics/testing": ["./packages/angular_devkit/schematics/testing/index"],
"@angular-devkit/architect/testing": ["./packages/angular_devkit/architect/testing/index"],
"@angular-devkit/architect/*": ["./packages/angular_devkit/architect/*/index"],
"@angular-devkit/build-webpack": ["./packages/angular_devkit/build_webpack"],
"@angular-devkit/*": ["./packages/angular_devkit/*/src"],
"@angular/*": ["./packages/angular/*/src"],
Expand Down

0 comments on commit df36a86

Please sign in to comment.