refactor(compiler-cli): tidy up file_system BUILD.bazel file_system (#37114)

* Re-order the `load` and `package` statements
* Make `srcs` glob more generic
* Remove unnecessary dependencies

PR Close #37114
This commit is contained in:
Pete Bacon Darwin 2020-06-20 08:49:32 +01:00 committed by Misko Hevery
parent 2b53b07c70
commit 5c40fd65fa
2 changed files with 5 additions and 7 deletions

View File

@ -1,14 +1,13 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "ts_library")
package(default_visibility = ["//visibility:public"])
ts_library(
name = "file_system",
srcs = ["index.ts"] + glob([
"src/*.ts",
"src/**/*.ts",
]),
deps = [
"//packages:types",
"@npm//@types/fs-extra",
"@npm//@types/node",
"@npm//fs-extra",

View File

@ -1,7 +1,7 @@
package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
package(default_visibility = ["//visibility:public"])
ts_library(
name = "test_lib",
testonly = True,
@ -9,7 +9,6 @@ ts_library(
"**/*.ts",
]),
deps = [
"//packages:types",
"//packages/compiler-cli/src/ngtsc/file_system",
"//packages/compiler-cli/src/ngtsc/file_system/testing",
"@npm//@types/fs-extra",