diff --git a/integration/bazel-schematics/test.sh b/integration/bazel-schematics/test.sh index f60993ff71..35e326f52b 100755 --- a/integration/bazel-schematics/test.sh +++ b/integration/bazel-schematics/test.sh @@ -9,15 +9,13 @@ function test() { # Create project ng new demo --collection=@angular/bazel --defaults --skip-git cd demo - # TODO(kyliau): Use bazel commands directly for now. Once 7.1.4 is out we can - # switch to use builders (ng build and ng test) # Run build + # TODO(kyliau): Use `bazel build` for now. Running `ng build` requires + # node_modules to be available in project directory. bazel build //src:bundle # Run test - bazel test \ - //src:test \ - //e2e:devserver_test \ - //e2e:prodserver_test + ng test + ng e2e } test diff --git a/packages/bazel/src/builders/BUILD.bazel b/packages/bazel/src/builders/BUILD.bazel index 0a4c2299d0..c745a5816b 100644 --- a/packages/bazel/src/builders/BUILD.bazel +++ b/packages/bazel/src/builders/BUILD.bazel @@ -20,6 +20,7 @@ ts_library( data = [ "schema.json", ], + module_name = "@angular/bazel/src/builders", deps = [ "@ngdeps//@angular-devkit/architect", "@ngdeps//@angular-devkit/core", diff --git a/packages/bazel/src/schematics/bazel-workspace/files/e2e/BUILD.bazel.template b/packages/bazel/src/schematics/bazel-workspace/files/e2e/BUILD.bazel.template index 3006b04ae5..25995db21e 100644 --- a/packages/bazel/src/schematics/bazel-workspace/files/e2e/BUILD.bazel.template +++ b/packages/bazel/src/schematics/bazel-workspace/files/e2e/BUILD.bazel.template @@ -12,7 +12,10 @@ ts_library( "@npm//@types/node", "@npm//jasmine", "@npm//protractor", - ] + ], + data = [ + "//:tsconfig.json", + ], ) protractor_web_test_suite(