Skip to content

Commit b598af6

Browse files
committed
First start at supporting a nodeExecutable setting in dataconnect.local.toml
1 parent a66e0ae commit b598af6

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

dataconnect/buildSrc/src/main/kotlin/com/google/firebase/example/dataconnect/gradle/LocalConfig.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ import kotlinx.serialization.Serializable
2121
import kotlinx.serialization.Transient
2222

2323
@Serializable
24-
internal data class LocalConfig(val npmExecutable: String? = null, @Transient val srcFile: File? = null) :
24+
internal data class LocalConfig(
25+
val npmExecutable: String? = null,
26+
val nodeExecutable: String? = null,
27+
@Transient val srcFile: File? = null
28+
) :
2529
java.io.Serializable {
2630
companion object {
2731
@Suppress("ConstPropertyName")

dataconnect/dataconnect.local.toml

+15
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,20 @@
66
# path of the npm executable to use works around that problem. Setting it to null
77
# uses "npm" as found in the PATH.
88
#
9+
# NOTE: If this value is set then you almost certainly want to set nodeExecutable
10+
# as well.
11+
#
912
# eg. npmExecutable = "/home/myusername/local/nvm/versions/node/v20.13.1/bin/npm"
1013
npmExecutable = null
14+
15+
# The path of the "node" executable to use to run the "firebase" command.
16+
# Setting this is normally not necessary; however, if "node" is not in the global
17+
# PATH, or the wrong version is in the global PATH, then setting this to the absolute
18+
# path of the node executable to use works around that problem. Setting it to null
19+
# uses "node" as found in the PATH.
20+
#
21+
# NOTE: If this value is set then you almost certainly want to set npmExecutable
22+
# as well.
23+
#
24+
# eg. nodeExecutable = "/home/myusername/local/nvm/versions/node/v20.13.1/bin/node"
25+
nodeExecutable = null

0 commit comments

Comments
 (0)