clawfire 0.6.11 → 0.6.12

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 CHANGED
@@ -269,7 +269,7 @@ async function runDevServer() {
269
269
  const port = portArg ? parseInt(portArg.split("=")[1], 10) : 3e3;
270
270
  const apiPort = apiPortArg ? parseInt(apiPortArg.split("=")[1], 10) : 3456;
271
271
  const noHotReload = args.includes("--no-hot-reload");
272
- const { startDevServer } = await import("./dev-server-FNRFWJD3.js");
272
+ const { startDevServer } = await import("./dev-server-BX2DLQQB.js");
273
273
  await startDevServer({
274
274
  projectDir,
275
275
  port,
@@ -3113,14 +3113,11 @@ var FirebaseSetup = class {
3113
3113
  if (!existsSync5(pkgPath)) {
3114
3114
  return { success: false, message: "functions/package.json not found." };
3115
3115
  }
3116
- const nodeModulesPath = resolve4(functionsDir, "node_modules");
3117
- if (!existsSync5(nodeModulesPath)) {
3118
- try {
3119
- await this.execTimeout("npm", ["install"], 12e4, functionsDir);
3120
- } catch (err) {
3121
- const msg = err instanceof Error ? err.message : "Unknown error";
3122
- return { success: false, message: `npm install in functions/ failed: ${msg}` };
3123
- }
3116
+ try {
3117
+ await this.execTimeout("npm", ["install"], 12e4, functionsDir);
3118
+ } catch (err) {
3119
+ const msg = err instanceof Error ? err.message : "Unknown error";
3120
+ return { success: false, message: `npm install in functions/ failed: ${msg}` };
3124
3121
  }
3125
3122
  try {
3126
3123
  const pkg = JSON.parse(readFileSync4(pkgPath, "utf-8"));
package/dist/dev.cjs CHANGED
@@ -3525,14 +3525,11 @@ var FirebaseSetup = class {
3525
3525
  if (!(0, import_node_fs4.existsSync)(pkgPath)) {
3526
3526
  return { success: false, message: "functions/package.json not found." };
3527
3527
  }
3528
- const nodeModulesPath = (0, import_node_path4.resolve)(functionsDir, "node_modules");
3529
- if (!(0, import_node_fs4.existsSync)(nodeModulesPath)) {
3530
- try {
3531
- await this.execTimeout("npm", ["install"], 12e4, functionsDir);
3532
- } catch (err) {
3533
- const msg = err instanceof Error ? err.message : "Unknown error";
3534
- return { success: false, message: `npm install in functions/ failed: ${msg}` };
3535
- }
3528
+ try {
3529
+ await this.execTimeout("npm", ["install"], 12e4, functionsDir);
3530
+ } catch (err) {
3531
+ const msg = err instanceof Error ? err.message : "Unknown error";
3532
+ return { success: false, message: `npm install in functions/ failed: ${msg}` };
3536
3533
  }
3537
3534
  try {
3538
3535
  const pkg = JSON.parse((0, import_node_fs4.readFileSync)(pkgPath, "utf-8"));