create-asaje-go-vue 0.3.4 → 0.3.5

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.
@@ -3109,6 +3109,7 @@ function mergeRailwayServiceVariables(registryEntry, variables) {
3109
3109
  async function resolveRailwayVariablePlan(config) {
3110
3110
  const localEnv = await loadRailwayLocalEnvDefaults(config.projectDir);
3111
3111
  const variablesMode = resolveRailwayVariablesMode(config.projectConfig);
3112
+ const builtInServiceKeys = new Set(["admin", "api", "realtime", "worker"]);
3112
3113
 
3113
3114
  const infra = {
3114
3115
  objectStorage: findRailwayService(
@@ -3256,6 +3257,17 @@ async function resolveRailwayVariablePlan(config) {
3256
3257
  mergeRailwayServiceVariables(serviceRegistry.worker, variables);
3257
3258
  }
3258
3259
 
3260
+ if (variablesMode !== "replace") {
3261
+ for (const spec of config.appServiceSpecs) {
3262
+ if (builtInServiceKeys.has(spec.key)) {
3263
+ continue;
3264
+ }
3265
+
3266
+ const serviceDefaults = await loadServiceEnvDefaults(config.projectDir, spec.directory);
3267
+ mergeRailwayServiceVariables(serviceRegistry[spec.key], serviceDefaults);
3268
+ }
3269
+ }
3270
+
3259
3271
  if (declaredVariables.hasDeclaredVariables) {
3260
3272
  if (Object.keys(declaredVariables.sharedVariables).length > 0) {
3261
3273
  for (const entry of Object.values(serviceRegistry)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-asaje-go-vue",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "CLI to scaffold, configure, and run the Asaje Go + Vue boilerplate",
5
5
  "type": "module",
6
6
  "bin": {