episoda 0.2.37 → 0.2.38

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.
@@ -2721,7 +2721,7 @@ var require_package = __commonJS({
2721
2721
  "package.json"(exports2, module2) {
2722
2722
  module2.exports = {
2723
2723
  name: "episoda",
2724
- version: "0.2.36",
2724
+ version: "0.2.38",
2725
2725
  description: "CLI tool for Episoda local development workflow orchestration",
2726
2726
  main: "dist/index.js",
2727
2727
  types: "dist/index.d.ts",
@@ -5452,6 +5452,11 @@ async function startDevServer(projectPath, port = 3e3, moduleUid = "default", op
5452
5452
  });
5453
5453
  injectedEnvVars = result.envVars;
5454
5454
  console.log(`[DevServer] EP998: Loaded ${Object.keys(injectedEnvVars).length} env vars (from ${result.fromCache ? "cache" : "server"})`);
5455
+ const envFilePath = path12.join(projectPath, ".env");
5456
+ if (!fs11.existsSync(envFilePath) && Object.keys(injectedEnvVars).length > 0) {
5457
+ console.log(`[DevServer] EP1004: .env file missing, writing ${Object.keys(injectedEnvVars).length} vars to ${envFilePath}`);
5458
+ writeEnvFile(projectPath, injectedEnvVars);
5459
+ }
5455
5460
  } else {
5456
5461
  console.log(`[DevServer] EP998: No auth config, skipping env var injection`);
5457
5462
  }