create-asaje-go-vue 0.3.3 → 0.3.4

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.
@@ -3311,9 +3311,9 @@ async function wireRailwayVariables(config) {
3311
3311
 
3312
3312
  async function loadRailwayLocalEnvDefaults(projectDir) {
3313
3313
  const [apiEnv, realtimeEnv, adminEnv] = await Promise.all([
3314
- tryReadEnvFile(path.join(projectDir, "api/.env")),
3315
- tryReadEnvFile(path.join(projectDir, "realtime-gateway/.env")),
3316
- tryReadEnvFile(path.join(projectDir, "admin/.env")),
3314
+ loadServiceEnvDefaults(projectDir, "api"),
3315
+ loadServiceEnvDefaults(projectDir, "realtime-gateway"),
3316
+ loadServiceEnvDefaults(projectDir, "admin"),
3317
3317
  ]);
3318
3318
 
3319
3319
  return {
@@ -3323,6 +3323,18 @@ async function loadRailwayLocalEnvDefaults(projectDir) {
3323
3323
  };
3324
3324
  }
3325
3325
 
3326
+ async function loadServiceEnvDefaults(projectDir, serviceDir) {
3327
+ const [exampleEnv, localEnv] = await Promise.all([
3328
+ tryReadEnvFile(path.join(projectDir, serviceDir, ".env.example")),
3329
+ tryReadEnvFile(path.join(projectDir, serviceDir, ".env")),
3330
+ ]);
3331
+
3332
+ return {
3333
+ ...exampleEnv,
3334
+ ...localEnv,
3335
+ };
3336
+ }
3337
+
3326
3338
  function buildRailwaySharedSecrets(localEnv, existingVariables) {
3327
3339
  const jwtSecret =
3328
3340
  sanitizeSecret(localEnv.api.JWT_SECRET, "change-me") ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-asaje-go-vue",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "CLI to scaffold, configure, and run the Asaje Go + Vue boilerplate",
5
5
  "type": "module",
6
6
  "bin": {