Skip to content

Commit 1b76f15

Browse files
committed
Fix bazel build
* Due to the fact that the @angular-devkit/schematics now handles Bazel better, the template files will be resolved through NodeJS. This means that the template files need to be referenced in the @//:node_modules label.
1 parent 77cdd1d commit 1b76f15

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ filegroup(
3838
"*.d.ts",
3939
]] + [
4040
"node_modules/http-server/**",
41+
# Reference all files of the "@schematics/angular" package because the schematic
42+
# tests depend on the template files of the angular schematics.
43+
"node_modules/@schematics/angular/**",
4144
]),
4245
)
4346

src/lib/schematics/update/project-tsconfig-paths.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {WorkspaceTool} from '@angular-devkit/core/src/workspace';
109
import {Tree} from '@angular-devkit/schematics';
11-
import {getWorkspace, WorkspaceProject} from '@schematics/angular/utility/config';
10+
import {getWorkspace} from '@schematics/angular/utility/config';
1211

1312
/**
1413
* Gets all tsconfig paths from a CLI project by reading the workspace configuration

0 commit comments

Comments
 (0)