1
- load ("@build_bazel_rules_nodejs//:index.bzl" , "nodejs_binary" )
1
+ load ("@build_bazel_rules_nodejs//:index.bzl" , "copy_to_bin" , "nodejs_binary" )
2
+
3
+ copy_to_bin (
4
+ name = "static_runfiles" ,
5
+ srcs = [
6
+ "firebase.json" ,
7
+ "firestore.indexes.json" ,
8
+ "firestore.rules" ,
9
+ ],
10
+ )
2
11
3
12
nodejs_binary (
4
13
name = "serve" ,
5
14
chdir = package_name (),
6
15
data = [
7
- # primary firebase configuration file
8
- "firebase.json " ,
16
+ # top-level static runfiles
17
+ ":static_runfiles " ,
9
18
10
19
# Firebase function files
11
20
"//apps/functions:functions_compiled" ,
@@ -17,7 +26,7 @@ nodejs_binary(
17
26
"internal-200822" ,
18
27
"--config" ,
19
28
# TODO: Find a way to do this without relying on the copy_to_bin that works cross platform.
20
- "$$(rlocation $(execpath : firebase.json) )" ,
29
+ "$$(rlocation dev-infra/apps/ firebase.json)" ,
21
30
"emulators:start" ,
22
31
],
23
32
)
@@ -26,8 +35,8 @@ nodejs_binary(
26
35
name = "deploy" ,
27
36
chdir = package_name (),
28
37
data = [
29
- # primary firebase configuration file
30
- "firebase.json " ,
38
+ # top-level static runfiles
39
+ ":static_runfiles " ,
31
40
32
41
# Firebase function files
33
42
"//apps/functions:functions_compiled" ,
@@ -39,7 +48,7 @@ nodejs_binary(
39
48
"internal-200822" ,
40
49
"--config" ,
41
50
# TODO: Find a way to do this without relying on the copy_to_bin that works cross platform.
42
- "$$(rlocation $(execpath : firebase.json) )" ,
51
+ "$$(rlocation dev-infra/apps/ firebase.json)" ,
43
52
"deploy" ,
44
53
"--only" ,
45
54
"functions" ,
0 commit comments