fix(bazel): Set module_name and enable ng test (#27715)
Relative imports in Typescript files only work when module_name is defined in ts_library (when run in Node.js). See issue https://github.com/bazelbuild/rules_typescript/issues/360 With that fixed, `ng test` now works. `ng build` requires `node_modules` to be available in the project directory, so it's not usable yet. Running `yarn` in project directory does not work because of postinstall version check. PR Close #27715
This commit is contained in:
parent
d1a14f6989
commit
183f27894c
@ -20,6 +20,7 @@ ts_library(
|
||||
data = [
|
||||
"schema.json",
|
||||
],
|
||||
module_name = "@angular/bazel/src/builders",
|
||||
deps = [
|
||||
"@ngdeps//@angular-devkit/architect",
|
||||
"@ngdeps//@angular-devkit/core",
|
||||
|
@ -12,7 +12,10 @@ ts_library(
|
||||
"@npm//@types/node",
|
||||
"@npm//jasmine",
|
||||
"@npm//protractor",
|
||||
]
|
||||
],
|
||||
data = [
|
||||
"//:tsconfig.json",
|
||||
],
|
||||
)
|
||||
|
||||
protractor_web_test_suite(
|
||||
|
Loading…
x
Reference in New Issue
Block a user