genbox 1.0.46 → 1.0.48
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/commands/create.js +3 -8
- package/dist/commands/db-sync.js +1 -1
- package/dist/commands/init.js +1418 -1790
- package/dist/commands/migrate.js +18 -215
- package/dist/commands/profiles.js +5 -11
- package/dist/commands/push.js +19 -24
- package/dist/commands/rebuild.js +3 -8
- package/dist/commands/validate.js +13 -13
- package/dist/config-explainer.js +1 -1
- package/dist/config-loader.js +74 -150
- package/dist/index.js +0 -2
- package/dist/profile-resolver.js +15 -23
- package/dist/schema-v4.js +35 -35
- package/dist/strict-mode.js +57 -126
- package/package.json +1 -1
- package/dist/commands/scan.js +0 -1162
- package/dist/migration.js +0 -335
- package/dist/schema-v3.js +0 -48
package/dist/commands/create.js
CHANGED
|
@@ -238,7 +238,7 @@ exports.createCommand = new commander_1.Command('create')
|
|
|
238
238
|
return;
|
|
239
239
|
}
|
|
240
240
|
const configVersion = (0, schema_v4_1.getConfigVersion)(loadResult.config);
|
|
241
|
-
if (configVersion === '
|
|
241
|
+
if (configVersion === 'invalid') {
|
|
242
242
|
console.log(chalk_1.default.red('Unknown config version'));
|
|
243
243
|
console.log(chalk_1.default.dim('Run "genbox init" to create a new configuration.'));
|
|
244
244
|
return;
|
|
@@ -735,13 +735,8 @@ function buildPayload(resolved, config, publicKey, privateKey, configLoader) {
|
|
|
735
735
|
// Build services map
|
|
736
736
|
const services = {};
|
|
737
737
|
for (const app of resolved.apps) {
|
|
738
|
-
if (app.
|
|
739
|
-
|
|
740
|
-
services[name] = { port: svc.port, healthcheck: svc.healthcheck };
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
else if (app.port) {
|
|
744
|
-
services[app.name] = { port: app.port };
|
|
738
|
+
if (app.port) {
|
|
739
|
+
services[app.name] = { port: app.port, healthcheck: app.healthcheck };
|
|
745
740
|
}
|
|
746
741
|
}
|
|
747
742
|
// Build files bundle
|
package/dist/commands/db-sync.js
CHANGED
|
@@ -78,7 +78,7 @@ exports.dbSyncCommand
|
|
|
78
78
|
const config = loadResult.config;
|
|
79
79
|
const source = options.source;
|
|
80
80
|
// Validate source environment exists
|
|
81
|
-
if (config.version ===
|
|
81
|
+
if (config.version === 4 && !config.environments?.[source]) {
|
|
82
82
|
console.log(chalk_1.default.yellow(`Environment '${source}' not configured in genbox.yaml`));
|
|
83
83
|
console.log(chalk_1.default.dim('Available environments:'));
|
|
84
84
|
for (const env of Object.keys(config.environments || {})) {
|