@stoker-platform/cli 0.5.162 → 0.5.164
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/init-files/bin/build.js +5 -1
- package/lib/package.json +1 -1
- package/package.json +4 -4
package/init-files/bin/build.js
CHANGED
|
@@ -125,7 +125,8 @@ try {
|
|
|
125
125
|
const projectSpecificEnvFile = join(envDir, `.env.${process.env.GCP_PROJECT}`)
|
|
126
126
|
|
|
127
127
|
let envContent = ""
|
|
128
|
-
const envPattern =
|
|
128
|
+
const envPattern =
|
|
129
|
+
/^(FB_FIRESTORE_EDITION|FB_FUNCTIONS_|FB_AI_REGION|GENKIT_ENV|STOKER_(?!FB_APP_CHECK_DEBUG_TOKEN)|ADMIN_)/
|
|
129
130
|
|
|
130
131
|
if (existsSync(projectEnvFile)) {
|
|
131
132
|
const projectEnvContent = await readFile(projectEnvFile, "utf8")
|
|
@@ -146,6 +147,9 @@ try {
|
|
|
146
147
|
const filteredLines = allLines.filter((line) => envPattern.test(line.trim()))
|
|
147
148
|
envContent = filteredLines.join("\n")
|
|
148
149
|
}
|
|
150
|
+
if (!/^\s*GENKIT_ENV\s*=/m.test(envContent)) {
|
|
151
|
+
envContent = envContent ? `${envContent}\nGENKIT_ENV="prod"` : `GENKIT_ENV="prod"`
|
|
152
|
+
}
|
|
149
153
|
|
|
150
154
|
await writeFile(functionsEnvPath, envContent, "utf8")
|
|
151
155
|
|
package/lib/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoker-platform/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.164",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"main": "./lib/src/main.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@google-cloud/secret-manager": "^7.0.0",
|
|
25
25
|
"@google-cloud/storage": "^8.0.1",
|
|
26
26
|
"@inquirer/prompts": "^8.6.0",
|
|
27
|
-
"@stoker-platform/node-client": "0.5.
|
|
28
|
-
"@stoker-platform/types": "0.5.
|
|
29
|
-
"@stoker-platform/utils": "0.5.
|
|
27
|
+
"@stoker-platform/node-client": "0.5.104",
|
|
28
|
+
"@stoker-platform/types": "0.5.73",
|
|
29
|
+
"@stoker-platform/utils": "0.5.90",
|
|
30
30
|
"algoliasearch": "^5.57.0",
|
|
31
31
|
"commander": "^15.0.0",
|
|
32
32
|
"cross-spawn": "^7.0.6",
|