#!/usr/bin/env bun
import {
  formatDevRuntimeMigrationFailure,
  runDevRuntimeMigrationCli
} from "./src/dev-runtime-migration.mjs";

try {
  process.exitCode = await runDevRuntimeMigrationCli(process.argv.slice(2));
} catch (error) {
  process.stdout.write(`${JSON.stringify(formatDevRuntimeMigrationFailure(error), null, 2)}\n`);
  process.exitCode = 1;
}
