33# Use of this source code is governed by an MIT-style license that can be
44# found in the LICENSE file at https://angular.io/license
55
6- licenses (["notice" ]) # MIT
7-
86load ("@bazel_tools//tools/build_defs/pkg:pkg.bzl" , "pkg_tar" )
9- load ("@npm_bazel_typescript//:index.bzl" , "ts_library" )
107load ("@npm_bazel_jasmine//:index.bzl" , "jasmine_node_test" )
118load ("@build_bazel_rules_nodejs//:index.bzl" , "pkg_npm" )
9+ load ("//tools:defaults.bzl" , "ts_library" )
1210load ("//tools:ts_json_schema.bzl" , "ts_json_schema" )
1311
12+ licenses (["notice" ]) # MIT
13+
1414package (default_visibility = ["//visibility:public" ])
1515
1616ts_json_schema (
@@ -84,8 +84,6 @@ ts_library(
8484 "src/**/*.html" ,
8585 ],
8686 ),
87- devmode_module = "commonjs" ,
88- devmode_target = "es2018" ,
8987 module_name = "@angular-devkit/build-angular" ,
9088 module_root = "src/index.d.ts" ,
9189 deps = [
@@ -191,16 +189,11 @@ ts_library(
191189 ],
192190 ),
193191 data = glob (["test/**/*" ]),
194- devmode_module = "commonjs" ,
195- devmode_target = "es2018" ,
196192 # strict_checks = False,
197- tsconfig = "//:tsconfig-test.json" ,
198193 deps = [
199194 ":build_angular" ,
200195 "//packages/angular_devkit/architect/testing" ,
201196 "//packages/angular_devkit/core" ,
202- "@npm//@types/jasmine" ,
203- "@npm//@types/node" ,
204197 "@npm//@types/webpack" ,
205198 "@npm//typescript" ,
206199 "@npm//webpack" ,
@@ -234,8 +227,6 @@ ts_library(
234227 testonly = True ,
235228 srcs = [":src/test-utils.ts" ],
236229 data = glob (["test/**/*" ]),
237- devmode_module = "commonjs" ,
238- devmode_target = "es2018" ,
239230 tsconfig = "//:tsconfig-test.json" ,
240231 deps = [
241232 ":build_angular" ,
@@ -244,8 +235,6 @@ ts_library(
244235 "//packages/angular_devkit/architect/testing" ,
245236 "//packages/angular_devkit/core" ,
246237 "//packages/angular_devkit/core/node" ,
247- "@npm//@types/jasmine" ,
248- "@npm//@types/node" ,
249238 ],
250239)
251240
@@ -327,8 +316,6 @@ LARGE_SPECS = {
327316 name = "build_angular_" + spec + "_test_lib" ,
328317 testonly = True ,
329318 srcs = glob (["src/" + spec + "/**/*_spec.ts" ]),
330- devmode_module = "commonjs" ,
331- devmode_target = "es2018" ,
332319 tsconfig = "//:tsconfig-test.json" ,
333320 deps = [
334321 # Dependencies needed to compile and run the specs themselves.
@@ -339,8 +326,6 @@ LARGE_SPECS = {
339326 "//packages/angular_devkit/architect/testing" ,
340327 "//packages/angular_devkit/core" ,
341328 "//packages/angular_devkit/core/node" ,
342- "@npm//@types/jasmine" ,
343- "@npm//@types/node" ,
344329
345330 # Base dependencies for the application in hello-world-app.
346331 # Some tests also require extra dependencies.
0 commit comments