11load ("@npm//@angular/build-tooling/bazel/api-golden:index.bzl" , "api_golden_test_npm_package" )
22load ("@npm//@bazel/jasmine:index.bzl" , "jasmine_node_test" )
3- load ("//tools:defaults.bzl" , "pkg_npm" , "ts_library" )
3+ load ("//tools:defaults.bzl" , "pkg_npm" )
4+ load ("//tools:interop.bzl" , "ts_project" )
45
56# Copyright Google Inc. All Rights Reserved.
67#
@@ -12,15 +13,14 @@ licenses(["notice"])
1213
1314# @angular-devkit/core
1415
15- ts_library (
16+ ts_project (
1617 name = "core" ,
17- package_name = "@angular-devkit/core" ,
1818 srcs = glob (
1919 include = ["src/**/*.ts" ],
2020 exclude = [
2121 "src/**/*_spec.ts" ,
2222 ],
23- ),
23+ ) + [ "index.ts" ] ,
2424 data = glob (
2525 include = ["**/*.json" ],
2626 # NB: we need to exclude the nested node_modules that is laid out by yarn workspaces
@@ -30,16 +30,16 @@ ts_library(
3030 ],
3131 ),
3232 module_name = "@angular-devkit/core" ,
33- module_root = "src/index.d.ts" ,
3433 deps = [
35- "@npm//@types/node" ,
36- "@npm//@types/picomatch" ,
37- "@npm//ajv" ,
38- "@npm//ajv-formats" ,
39- "@npm//jsonc-parser" ,
40- "@npm//picomatch" ,
41- "@npm//rxjs" ,
42- "@npm//source-map" ,
34+ "//:root_modules/@types/node" ,
35+ "//:root_modules/@types/picomatch" ,
36+ "//:root_modules/@types/jasmine" ,
37+ "//:root_modules/ajv" ,
38+ "//:root_modules/ajv-formats" ,
39+ "//:root_modules/jsonc-parser" ,
40+ "//:root_modules/picomatch" ,
41+ "//:root_modules/rxjs" ,
42+ "//:root_modules/source-map" ,
4343 # @node_module: typescript:es2015.proxy
4444 # @node_module: typescript:es2015.reflect
4545 # @node_module: typescript:es2015.symbol.wellknown
@@ -49,15 +49,15 @@ ts_library(
4949
5050# @external_begin
5151
52- ts_library (
52+ ts_project (
5353 name = "core_test_lib" ,
5454 testonly = True ,
5555 srcs = glob (["src/**/*_spec.ts" ]),
5656 data = glob (["src/workspace/json/test/**/*.json" ]),
5757 deps = [
58- ":core " ,
59- "//packages/angular_devkit/core/node " ,
60- "@npm//rxjs " ,
58+ ":core_rjs " ,
59+ "//:root_modules/rxjs " ,
60+ "//packages/angular_devkit/core/node:node_rjs " ,
6161 ],
6262)
6363
0 commit comments