3
3
# Use of this source code is governed by an MIT-style license that can be
4
4
# found in the LICENSE file at https://angular.io/license
5
5
6
- licenses (["notice" ]) # MIT
7
-
8
6
load ("@bazel_tools//tools/build_defs/pkg:pkg.bzl" , "pkg_tar" )
9
- load ("@npm_bazel_typescript//:index.bzl" , "ts_library" )
10
7
load ("@npm_bazel_jasmine//:index.bzl" , "jasmine_node_test" )
11
8
load ("@build_bazel_rules_nodejs//:index.bzl" , "pkg_npm" )
9
+ load ("//tools:defaults.bzl" , "ts_library" )
12
10
load ("//tools:ts_json_schema.bzl" , "ts_json_schema" )
13
11
12
+ licenses (["notice" ]) # MIT
13
+
14
14
package (default_visibility = ["//visibility:public" ])
15
15
16
16
ts_json_schema (
@@ -84,8 +84,6 @@ ts_library(
84
84
"src/**/*.html" ,
85
85
],
86
86
),
87
- devmode_module = "commonjs" ,
88
- devmode_target = "es2018" ,
89
87
module_name = "@angular-devkit/build-angular" ,
90
88
module_root = "src/index.d.ts" ,
91
89
deps = [
@@ -191,16 +189,11 @@ ts_library(
191
189
],
192
190
),
193
191
data = glob (["test/**/*" ]),
194
- devmode_module = "commonjs" ,
195
- devmode_target = "es2018" ,
196
192
# strict_checks = False,
197
- tsconfig = "//:tsconfig-test.json" ,
198
193
deps = [
199
194
":build_angular" ,
200
195
"//packages/angular_devkit/architect/testing" ,
201
196
"//packages/angular_devkit/core" ,
202
- "@npm//@types/jasmine" ,
203
- "@npm//@types/node" ,
204
197
"@npm//@types/webpack" ,
205
198
"@npm//typescript" ,
206
199
"@npm//webpack" ,
@@ -234,8 +227,6 @@ ts_library(
234
227
testonly = True ,
235
228
srcs = [":src/test-utils.ts" ],
236
229
data = glob (["test/**/*" ]),
237
- devmode_module = "commonjs" ,
238
- devmode_target = "es2018" ,
239
230
tsconfig = "//:tsconfig-test.json" ,
240
231
deps = [
241
232
":build_angular" ,
@@ -244,8 +235,6 @@ ts_library(
244
235
"//packages/angular_devkit/architect/testing" ,
245
236
"//packages/angular_devkit/core" ,
246
237
"//packages/angular_devkit/core/node" ,
247
- "@npm//@types/jasmine" ,
248
- "@npm//@types/node" ,
249
238
],
250
239
)
251
240
@@ -327,8 +316,6 @@ LARGE_SPECS = {
327
316
name = "build_angular_" + spec + "_test_lib" ,
328
317
testonly = True ,
329
318
srcs = glob (["src/" + spec + "/**/*_spec.ts" ]),
330
- devmode_module = "commonjs" ,
331
- devmode_target = "es2018" ,
332
319
tsconfig = "//:tsconfig-test.json" ,
333
320
deps = [
334
321
# Dependencies needed to compile and run the specs themselves.
@@ -339,8 +326,6 @@ LARGE_SPECS = {
339
326
"//packages/angular_devkit/architect/testing" ,
340
327
"//packages/angular_devkit/core" ,
341
328
"//packages/angular_devkit/core/node" ,
342
- "@npm//@types/jasmine" ,
343
- "@npm//@types/node" ,
344
329
345
330
# Base dependencies for the application in hello-world-app.
346
331
# Some tests also require extra dependencies.
0 commit comments