Skip to content

Commit 5a2a055

Browse files
Keen Yee Liauvikerman
Keen Yee Liau
authored andcommitted
build: g3 sync for angular_devkit
Fix all build errors in g3
1 parent 289336d commit 5a2a055

File tree

6 files changed

+27
-5
lines changed

6 files changed

+27
-5
lines changed

BUILD

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# found in the LICENSE file at https://angular.io/license
55
package(default_visibility = ["//visibility:public"])
66

7-
licenses(["notice"]) # MIT License
7+
licenses(["notice"])
88

99
exports_files([
1010
"LICENSE",

packages/angular_devkit/core/BUILD

+10
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@ ts_library(
3030
],
3131
module_name = "@angular-devkit/core",
3232
module_root = "src/index.d.ts",
33+
# The attribute below is needed in g3 to turn off strict typechecking
34+
# strict_checks = False,
3335
deps = [
3436
"@npm//rxjs",
3537
"@npm//@types/node",
3638
"@npm//ajv",
3739
"@npm//magic-string",
3840
"@npm//source-map",
3941
# @typings: es2015.core
42+
# @typings: es2015.proxy
43+
# @typings: es2015.reflect
4044
# @typings: es2015.symbol.wellknown
4145
# @typings: es2016.array.include
4246
],
@@ -55,6 +59,8 @@ ts_library(
5559
"src/experimental/workspace/test/test-workspace.json",
5660
"src/experimental/workspace/workspace-schema.json",
5761
],
62+
# The attribute below is needed in g3 to turn off strict typechecking
63+
# strict_checks = False,
5864
# @external_begin
5965
tsconfig = "//:tsconfig-test.json",
6066
# @external_end
@@ -93,6 +99,8 @@ ts_library(
9399
),
94100
module_name = "@angular-devkit/core/node",
95101
module_root = "node/index.d.ts",
102+
# The attribute below is needed in g3 to turn off strict typechecking
103+
# strict_checks = False,
96104
deps = [
97105
":core",
98106
"@npm//@types/node",
@@ -150,6 +158,8 @@ ts_library(
150158
),
151159
module_name = "@angular-devkit/core/node/testing",
152160
module_root = "node/testing/index.d.ts",
161+
# The attribute below is needed in g3 to turn off strict typechecking
162+
# strict_checks = False,
153163
deps = [
154164
":core",
155165
":node",

packages/angular_devkit/core/node/host.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class NodeJsAsyncHost implements virtualFs.Host<fs.Stats> {
160160

161161
list(path: Path): Observable<PathFragment[]> {
162162
return _callFs(fs.readdir, getSystemPath(path)).pipe(
163-
map(names => names.map(name => fragment(name))),
163+
map((names: string[]) => names.map(name => fragment(name))),
164164
);
165165
}
166166

packages/angular_devkit/core/src/json/schema/visitor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function _visitJsonRecursive<ContextT>(
6565
}
6666
}
6767

68-
const value = visitor(json, ptr, schema, root);
68+
const value = visitor(json, ptr, schema as JsonObject, root);
6969

7070
return (isObservable<JsonValue>(value) ? value : observableOf(value)).pipe(
7171
concatMap(value => {

packages/angular_devkit/schematics/BUILD

+11-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ load("@npm_bazel_typescript//:defs.bzl", "ts_library")
1111
load("@build_bazel_rules_nodejs//:defs.bzl", "npm_package")
1212
# @external_end
1313

14-
licenses(["notice"]) # MIT License
14+
licenses(["notice"])
1515

1616
# @angular-devkit/schematics
1717

@@ -27,6 +27,8 @@ ts_library(
2727
),
2828
module_name = "@angular-devkit/schematics",
2929
module_root = "src/index.d.ts",
30+
# The attribute below is needed in g3 to turn off strict typechecking
31+
# strict_checks = False,
3032
deps = [
3133
"//packages/angular_devkit/core",
3234
"//packages/angular_devkit/core:node", # TODO: get rid of this for 6.0
@@ -82,6 +84,8 @@ ts_library(
8284
),
8385
module_name = "@angular-devkit/schematics/tasks",
8486
module_root = "tasks/index.d.ts",
87+
# The attribute below is needed in g3 to turn off strict typechecking
88+
# strict_checks = False,
8589
deps = [
8690
":schematics",
8791
"//packages/angular_devkit/core",
@@ -106,6 +110,8 @@ ts_library(
106110
),
107111
module_name = "@angular-devkit/schematics/tasks/node",
108112
module_root = "tasks/node/index.d.ts",
113+
# The attribute below is needed in g3 to turn off strict typechecking
114+
# strict_checks = False,
109115
deps = [
110116
":schematics",
111117
":tasks",
@@ -130,6 +136,8 @@ ts_library(
130136
"tasks/tslint-fix/test/collection.json",
131137
"tasks/tslint-fix/test/rules/customRuleRule.js",
132138
],
139+
# The attribute below is needed in g3 to turn off strict typechecking
140+
# strict_checks = False,
133141
# @external_begin
134142
tsconfig = "//:tsconfig-test.json",
135143
# @external_end
@@ -169,6 +177,8 @@ ts_library(
169177
),
170178
module_name = "@angular-devkit/schematics/tools",
171179
module_root = "tools/index.d.ts",
180+
# The attribute below is needed in g3 to turn off strict typechecking
181+
# strict_checks = False,
172182
deps = [
173183
":schematics",
174184
":tasks",

packages/angular_devkit/schematics_cli/BUILD

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package(default_visibility = ["//visibility:public"])
66

77
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
88

9-
licenses(["notice"]) # MIT License
9+
licenses(["notice"])
1010

1111
# @angular-devkit/schematics-cli
1212

@@ -22,6 +22,8 @@ ts_library(
2222
),
2323
module_name = "@angular-devkit/schematics-cli",
2424
module_root = "bin",
25+
# The attribute below is needed in g3 to turn off strict typechecking
26+
# strict_checks = False,
2527
deps = [
2628
"//packages/angular_devkit/core",
2729
"//packages/angular_devkit/core:node",

0 commit comments

Comments
 (0)