File tree 4 files changed +13
-34
lines changed
4 files changed +13
-34
lines changed Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
# =============================================================================
15
15
16
+ load ("@npm//@bazel/concatjs:index.bzl" , "ts_config" )
16
17
load ("//tools:tfjs_web_test.bzl" , "grep_flag" )
17
18
load (":python_packages.bzl" , "PYTHON_PACKAGES" )
18
19
load (":python_toolchain.bzl" , "configure_python_toolchains" )
19
20
21
+ package (default_visibility = ["//visibility:public" ])
22
+
20
23
exports_files ([
21
24
"babel.config.json" ,
22
25
"tsconfig.json" ,
@@ -25,6 +28,12 @@ exports_files([
25
28
"tsconfig_ts_library.json" ,
26
29
])
27
30
31
+ ts_config (
32
+ name = "tsconfig_ts_library" ,
33
+ src = "tsconfig_ts_library.json" ,
34
+ deps = [":tsconfig.json" ],
35
+ )
36
+
28
37
configure_python_toolchains (
29
38
platforms = PYTHON_PACKAGES ,
30
39
)
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def ts_library(**kwargs):
23
23
# have "incremental = true" because ts_library does not support incremental
24
24
# builds at the level of the typescript compiler (it supports incrementally
25
25
# rebuilding at the level of Bazel build targets).
26
- tsconfig = kwargs .pop ("tsconfig" , "@//:tsconfig_ts_library.json " )
26
+ tsconfig = kwargs .pop ("tsconfig" , "@//:tsconfig_ts_library" )
27
27
28
28
# Use es2017 for esModule (prodmode) outputs by default. This is transpiled
29
29
# down to es5 in tfjs_bundle.bzl. Use es5 for commonjs (devmode) outputs by
Original file line number Diff line number Diff line change 23
23
"pretty" : true ,
24
24
"noFallthroughCasesInSwitch" : true ,
25
25
"allowUnreachableCode" : false ,
26
- "incremental" : true ,
27
- "plugins" : [
28
- {
29
- "name" : " @bazel/tsetse" ,
30
- "disabledRules" : [
31
- " must-use-promises" ,
32
- " must-type-assert-json-parse" ,
33
- " ban-promise-as-condition"
34
- ]
35
- }
36
- ]
26
+ "incremental" : true
37
27
},
38
28
"include" : [
39
29
" **/src/"
Original file line number Diff line number Diff line change 1
1
{
2
+ "extends" : " ./tsconfig.json" ,
2
3
"compilerOptions" : {
3
- "module" : " ES2015" ,
4
- "moduleResolution" : " node" ,
5
- "noImplicitAny" : true ,
6
- "sourceMap" : true ,
7
- "inlineSources" : true ,
8
- "removeComments" : false ,
9
- "preserveConstEnums" : true ,
10
- "allowSyntheticDefaultImports" : true ,
11
- "declaration" : true ,
12
- "target" : " es2017" ,
13
- "lib" : [
14
- " es2017" ,
15
- " dom"
16
- ],
17
- "noUnusedLocals" : true ,
18
- "noImplicitReturns" : true ,
19
- "noImplicitThis" : true ,
20
- "alwaysStrict" : true ,
21
- "noUnusedParameters" : false ,
22
- "pretty" : true ,
23
- "noFallthroughCasesInSwitch" : true ,
24
- "allowUnreachableCode" : false ,
4
+ "incremental" : false ,
25
5
"baseUrl" : " ." ,
26
6
"paths" : {
27
7
"@tensorflow/*" : [
You can’t perform that action at this time.
0 commit comments