var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });

// src/settings.ts
function defaultSettings(settings) {
  if (settings.databases === void 0) settings.databases = {};
  if (typeof settings.dismissNoMigrationsLog !== "boolean") settings.dismissNoMigrationsLog = false;
  return settings;
}
__name(defaultSettings, "defaultSettings");

// src/commands/make-migrations.ts
async function makeMigrations(databases, { settings, domains, commandLineArgs }) {
  const databaseSettings = defaultSettings(settings);
  const databaseDomains = domains;
  await databases.makeMigrations(databaseSettings, databaseDomains, commandLineArgs.keywordArgs);
  await databases.close();
  process.exit(0);
}
__name(makeMigrations, "makeMigrations");
export {
  makeMigrations
};
