UNPKG

scai

Version:

> AI-powered CLI tool for commit messages **and** pull request reviews — using local models.

16 lines (15 loc) 503 B
// src/commands/MigrateCmd.ts import path from 'path'; import { pathToFileURL } from 'url'; import { fileURLToPath } from 'url'; export async function runMigrateCommand() { const scriptPath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../dist/scripts/migrateDb.js' // compiled output ); try { await import(pathToFileURL(scriptPath).href); } catch (err) { console.error('❌ Failed to run migration script:', err); process.exit(1); } }