55package (default_visibility = ["//visibility:public" ])
66
77load ("@npm_bazel_typescript//:index.bzl" , "ts_library" )
8+ load ("@npm_bazel_jasmine//:index.bzl" , "jasmine_node_test" )
89
910licenses (["notice" ])
1011
@@ -20,19 +21,46 @@ ts_library(
2021 "bin/**/*_benchmark.ts" ,
2122 ],
2223 ),
23- module_name = "@angular-devkit/schematics-cli" ,
24- module_root = "bin" ,
2524 # The attribute below is needed in g3 to turn off strict typechecking
2625 # strict_checks = False,
26+ data = glob (["**/*.json" ]),
27+ module_name = "@angular-devkit/schematics-cli" ,
28+ module_root = "bin/schematics.d.ts" ,
2729 deps = [
2830 "//packages/angular_devkit/core" ,
2931 "//packages/angular_devkit/core/node" ,
3032 "//packages/angular_devkit/schematics" ,
3133 "//packages/angular_devkit/schematics/tasks" ,
3234 "//packages/angular_devkit/schematics/tools" ,
35+ "//packages/schematics/schematics" ,
3336 "@npm//@types/inquirer" ,
3437 "@npm//@types/minimist" ,
3538 "@npm//@types/node" ,
39+ "@npm//inquirer" ,
40+ "@npm//minimist" ,
3641 "@npm//rxjs" ,
42+ "@npm//symbol-observable" ,
3743 ],
3844)
45+
46+ ts_library (
47+ name = "schematics_cli_test_lib" ,
48+ testonly = True ,
49+ srcs = glob (
50+ include = [
51+ "bin/**/*_spec.ts" ,
52+ ],
53+ ),
54+ # strict_checks = False,
55+ tsconfig = "//:tsconfig-test.json" ,
56+ deps = [
57+ ":schematics_cli" ,
58+ "@npm//@types/jasmine" ,
59+ "@npm//@types/node" ,
60+ ],
61+ )
62+
63+ jasmine_node_test (
64+ name = "schematics_cli_test" ,
65+ srcs = [":schematics_cli_test_lib" ],
66+ )
0 commit comments