clawfire 0.6.11 → 0.6.13
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/dist/cli.js +1 -1
- package/dist/{dev-server-FNRFWJD3.js → dev-server-O6MKAB6R.js} +16 -10
- package/dist/dev.cjs +16 -10
- package/dist/dev.cjs.map +1 -1
- package/dist/dev.js +16 -10
- package/dist/dev.js.map +1 -1
- package/package.json +1 -1
package/dist/dev.js
CHANGED
|
@@ -3487,14 +3487,11 @@ var FirebaseSetup = class {
|
|
|
3487
3487
|
if (!existsSync6(pkgPath)) {
|
|
3488
3488
|
return { success: false, message: "functions/package.json not found." };
|
|
3489
3489
|
}
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
const msg = err instanceof Error ? err.message : "Unknown error";
|
|
3496
|
-
return { success: false, message: `npm install in functions/ failed: ${msg}` };
|
|
3497
|
-
}
|
|
3490
|
+
try {
|
|
3491
|
+
await this.execTimeout("npm", ["install"], 12e4, functionsDir);
|
|
3492
|
+
} catch (err) {
|
|
3493
|
+
const msg = err instanceof Error ? err.message : "Unknown error";
|
|
3494
|
+
return { success: false, message: `npm install in functions/ failed: ${msg}` };
|
|
3498
3495
|
}
|
|
3499
3496
|
try {
|
|
3500
3497
|
const pkg = JSON.parse(readFileSync4(pkgPath, "utf-8"));
|
|
@@ -4981,9 +4978,18 @@ ${liveReloadScript}
|
|
|
4981
4978
|
steps.push("Functions build failed \u2014 hosting only");
|
|
4982
4979
|
}
|
|
4983
4980
|
}
|
|
4984
|
-
|
|
4981
|
+
let targets = deployFunctions ? "hosting,functions" : "hosting";
|
|
4985
4982
|
console.log(` Deploying ${targets}...`);
|
|
4986
|
-
|
|
4983
|
+
let result = await this.firebaseSetup.deployHosting(targets);
|
|
4984
|
+
if (!result.success && deployFunctions) {
|
|
4985
|
+
const msg = result.message.toLowerCase();
|
|
4986
|
+
if (msg.includes("blaze") || msg.includes("pay-as-you-go") || msg.includes("upgrade") || msg.includes("billing") || msg.includes("artifactregistry")) {
|
|
4987
|
+
console.log(" \x1B[33m\u26A0\x1B[0m Functions require Blaze plan. Deploying hosting only...");
|
|
4988
|
+
steps.push("Functions skipped (requires Blaze plan)");
|
|
4989
|
+
targets = "hosting";
|
|
4990
|
+
result = await this.firebaseSetup.deployHosting(targets);
|
|
4991
|
+
}
|
|
4992
|
+
}
|
|
4987
4993
|
clearFirebaseStatusCache();
|
|
4988
4994
|
sendJson({
|
|
4989
4995
|
...result,
|